public class DevicePlotPoints
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
MAX_X |
|
static int |
MAX_Y |
|
static int |
MIN_X |
|
static int |
MIN_Y |
|
static int |
X_DIM |
|
static int |
Y_DIM |
Constructor | Description |
---|---|
DevicePlotPoints(Controller controller,
java.lang.String[] sliderLabels,
IFunction[] fncts,
java.lang.String[] funcNames,
boolean verticalParameters) |
Modifier and Type | Method | Description |
---|---|---|
java.awt.Component |
controlGraphic() |
Returns the top level panel that the points table and (if parameters are
vertically-oriented) function parameter slider components sit on.
|
DisplayPlotXChart |
getDisplayPlot() |
Returns the top level panel that the function plot components sit on.
|
double |
getParameterValue(java.lang.String desc) |
Returns the value of the function parameter slider.
|
DeviceSlider |
getPlotSizeSlider(int minMaxXY) |
Returns the plot scale slider for the given parameter (values can be
DevicePlotPoints.MIN_X, MAX_X, MIN_Y or MAX_Y.
|
DeviceSlider |
getSlider(java.lang.String desc) |
Returns the slider for the given parameter.
|
DeviceTableModelGeneric |
getTableModel() |
|
java.awt.Component |
graphic() |
Returns the top level panel that the function plot components sit on.
|
java.awt.Component |
parameterGraphic() |
Returns the panel that contains the parameter sliders.
|
void |
refresh() |
Instructs the plot to redisplay any plotted functions with the most
recent data.
|
java.awt.Component |
resizeGraphic() |
Returns the top level panel that the plot scale resizing components sit on.
|
void |
setAutoScale(boolean isAutoScale) |
|
void |
setParameterLimits(java.lang.String desc,
double min,
double max) |
Sets the minimum and maximum allowable values for a function parameter.
|
void |
setSliderTextboxesEditable(boolean isSliderTextboxesEditable) |
|
void |
setTableColumnNames(java.lang.String[] colNames) |
Sets the column headers to the given strings and fires an event
indicating the column headers have been changed.
|
void |
setXScale(double min,
double max,
double middle) |
Sets the minimum and maximum X-axis limits on the function display
sliders.
|
void |
setYScale(double min,
double max,
double middle) |
Sets the minimum and maximum Y-axis limits on the function display
sliders.
|
void |
showPointInput(boolean show) |
Sets the visibility of the data point input table.
|
void |
showScale(boolean show) |
Sets the visibility of the plot axis limit sliders.
|
public static final int X_DIM
public static final int Y_DIM
public static final int MIN_X
public static final int MAX_X
public static final int MIN_Y
public static final int MAX_Y
public DevicePlotPoints(Controller controller, java.lang.String[] sliderLabels, IFunction[] fncts, java.lang.String[] funcNames, boolean verticalParameters)
public void setSliderTextboxesEditable(boolean isSliderTextboxesEditable)
public void setTableColumnNames(java.lang.String[] colNames)
colNames
- Column Header Namespublic DisplayPlotXChart getDisplayPlot()
public java.awt.Component graphic()
public java.awt.Component controlGraphic()
public java.awt.Component parameterGraphic()
public java.awt.Component resizeGraphic()
public void refresh()
public DeviceSlider getPlotSizeSlider(int minMaxXY)
public void setXScale(double min, double max, double middle)
min
- Minimum X-axis valuemax
- Maximum X-axis valuemiddle
- Value at which to split the min/max X-axis limit sliderspublic void setYScale(double min, double max, double middle)
min
- Minimum Y-axis valuemax
- Maximum Y-axis valuemiddle
- Value at which to split the min/max Y-axis limit sliderspublic void showScale(boolean show)
show
- show/unshow booleanpublic void showPointInput(boolean show)
show
- show/unshow booleanpublic double getParameterValue(java.lang.String desc)
desc
- label of parameter setting slider. The label was passed
into the ctor.public void setParameterLimits(java.lang.String desc, double min, double max)
desc
- label of parameter setting slider. The label was passed
into the ctor.min
- Minimum allowable value for the function parameter.max
- Maxminimum allowable value for the function parameter.public DeviceTableModelGeneric getTableModel()
public DeviceSlider getSlider(java.lang.String desc)
public void setAutoScale(boolean isAutoScale)