public class LinesPlotState extends PlotState
PlotState.SimpleValueInfo
Constructor and Description |
---|
LinesPlotState(int ngraph)
Constructs a new state.
|
Modifier and Type | Method and Description |
---|---|
String |
compare(PlotState o)
Returns a string giving a list of items in which this state differs
from a given state
o . |
boolean |
equals(Object o) |
int |
getGraphCount()
Returns the number of graphs in the stack.
|
int[] |
getGraphIndices()
Returns the mapping of subsets to graph indices.
|
ValueInfo[] |
getYAxes()
Returns the metatdata for the different Y axes to be plotted
(one for each graph).
|
String[] |
getYAxisLabels()
Returns the text labels for the different Y axes to be plotted
(one for each graph).
|
ValueConverter[] |
getYConverters()
Returns the array of numeric converter objects, one for the Y axis of
each graph.
|
boolean[] |
getYFlipFlags()
Returns flags for which Y axes will be plotted inverted
(one for each graph).
|
boolean[] |
getYLogFlags()
Returns flags for which Y axes will be plotted logarithmically
(one for each graph).
|
double[][] |
getYRanges()
Returns the data ranges for each different Y axis (one for each graph).
|
boolean |
getYZeroFlag()
Returns whether a line should be drawn at y=0 on all the graphs.
|
int |
hashCode() |
void |
setGraphIndices(int[] graphIndices)
Sets the mapping of subsets to graph indices.
|
void |
setYAxes(ValueInfo[] yAxes)
Sets the metadata for the different Y axes to be plotted
(one for each graph).
|
void |
setYAxisLabels(String[] yAxisLabels)
Sets the text labels for the different Y axes to be plotted
(one for each graph).
|
void |
setYConverters(ValueConverter[] yConverters)
Sets an array of numeric converter objects, one for the Y axis of
each graph.
|
void |
setYFlipFlags(boolean[] yFlipFlags)
Sets flags for which Y axes will be plotted inverted
(one for each graph).
|
void |
setYLogFlags(boolean[] yLogFlags)
Sets flags for which Y axes will be plotted logarithmically
(one for each graph).
|
void |
setYRanges(double[][] yRanges)
Sets data ranges for each different Y axis (one for each graph).
|
void |
setYZeroFlag(boolean yZeroFlag)
Sets whether a line should be drawn at y=0 on all the graphs.
|
getAntialias, getAxes, getAxisLabels, getConverters, getFlipFlags, getGrid, getLogFlags, getMainNdim, getPlotData, getRanges, getShaders, getValid, setAntialias, setAxes, setAxisLabels, setConverters, setFlipFlags, setGrid, setLogFlags, setMainNdim, setPlotData, setRanges, setShaders, setValid
public LinesPlotState(int ngraph)
ngraph
- number of graphs in the stackpublic int getGraphCount()
public void setYAxes(ValueInfo[] yAxes)
axes
array is not used directly, the relevant information is
abstracted from it and stored (subsequent calls of getYAxes()
will not return the same array or component objects).yAxes
- Y axis metadata arraypublic void setYAxisLabels(String[] yAxisLabels)
yAxisLabels
- Y axis label arraypublic String[] getYAxisLabels()
public ValueInfo[] getYAxes()
public void setYRanges(double[][] yRanges)
yRanges
is an N-element array of 2-element double arrays.
Each of its elements gives (low,high) limits for the data to be
considered. Either or both elements may be NaN.
A non-NaN value is considered as a request to fix the lower/upper
limit of the indicated axis to the value given. A NaN value
normally means that the limit should be determined dynamically
(by assessing the range of the available data points).yRanges
- array of (low,high) fixed range limitspublic double[][] getYRanges()
PlotState.setRanges(double[][])
public void setYLogFlags(boolean[] yLogFlags)
yLogFlags
- Y log flagspublic boolean[] getYLogFlags()
public void setYFlipFlags(boolean[] yFlipFlags)
yFlipFlags
- Y flip flagspublic boolean[] getYFlipFlags()
public void setYZeroFlag(boolean yZeroFlag)
yZeroFlag
- true to draw y=0 linespublic boolean getYZeroFlag()
public void setYConverters(ValueConverter[] yConverters)
ValueConverter.unconvert(java.lang.Object)
method of these should convert a numeric value back to the
formatted (text) version of a value on the corresponding axis.
Any of the elements may be null if the value is numeric anyway.yConverters
- Y numeric converter array, one for each graphpublic ValueConverter[] getYConverters()
public void setGraphIndices(int[] graphIndices)
graphIndices
- subset to graph mappingpublic int[] getGraphIndices()
public String compare(PlotState o)
PlotState
o
. This method is used only for
debugging purposes, and may not be fully implemented at any given
time.Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.