Editor Interpolate Updates:

- Extended support for 2D and 3D axis interpolation.
 - Base Table verticalInterpolate now calls horizontalInterpolate (Used by 1D vertical axis).
This commit is contained in:
Scotthew 2014-05-07 10:23:02 -07:00
parent c0a26c93db
commit 0ff2371e56
4 changed files with 26 additions and 3 deletions

View File

@ -1109,6 +1109,7 @@ public abstract class Table extends JPanel implements Serializable {
}
public void verticalInterpolate() {
horizontalInterpolate();
}
public void horizontalInterpolate() {

View File

@ -303,6 +303,24 @@ public class Table2D extends Table {
}
}
@Override
public void interpolate() {
super.interpolate();
this.getAxis().interpolate();
}
@Override
public void verticalInterpolate() {
super.verticalInterpolate();
this.getAxis().verticalInterpolate();
}
@Override
public void horizontalInterpolate() {
super.horizontalInterpolate();
this.getAxis().horizontalInterpolate();
}
@Override
public boolean isLiveDataSupported() {
return !isNullOrEmpty(axis.getLogParam());

View File

@ -809,6 +809,8 @@ public class Table3D extends Table {
}
}
}
// Interpolate y axis in case the y axis in selected.
this.getYAxis().verticalInterpolate();
}
@Override
@ -841,6 +843,8 @@ public class Table3D extends Table {
}
}
}
// Interpolate x axis in case the x axis in selected.
this.getXAxis().horizontalInterpolate();
}
@Override

View File

@ -180,13 +180,13 @@ public class TableFrame extends JInternalFrame implements InternalFrameListener,
getTable().refreshCompare();
} else if (e.getSource() == menu.getInterp()) {
table.interpolate();
getTable().interpolate();
} else if (e.getSource() == menu.getVertInterp()) {
table.verticalInterpolate();
getTable().verticalInterpolate();
} else if (e.getSource() == menu.getHorizInterp()) {
table.horizontalInterpolate();
getTable().horizontalInterpolate();
}
}