Package jcckit.data
Class DataPlot
java.lang.Object
jcckit.data.DataContainer
jcckit.data.DataPlot
A plot is a
DataContainer
of DataCurves
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionDataPlot()
Creates an empty instance.DataPlot
(ConfigParameters config) Creates an instance from the specified config parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataPlot
create
(ConfigParameters config) Convenient method to create a DataPlot based on the specified config parameters.protected boolean
isValid
(DataElement element) Returns true if element is an instance ofDataCurve
.Methods inherited from class jcckit.data.DataContainer
addDataListener, addElement, getElement, getIndexOf, getNumberOfElements, insertElementAt, removeDataListener, removeElementAt, replaceElementAt
-
Field Details
-
CURVES_KEY
Config parameter key.- See Also:
-
DATA_KEY
Config parameter key.- See Also:
-
-
Constructor Details
-
DataPlot
public DataPlot()Creates an empty instance. -
DataPlot
Creates an instance from the specified config parameters.Key & Default Value Type Mandatory Description curves String[] yes List of keys denoting data curves. Each key refers to config parameters used in the constructor of DataCurve
.
-
-
Method Details
-
create
Convenient method to create a DataPlot based on the specified config parameters. It is a short-cut of new DataPlot(config.getNode("data")). -
isValid
Returns true if element is an instance ofDataCurve
.- Specified by:
isValid
in classDataContainer
- Parameters:
element
- DataElement to be checked.
-