jcckit.data
Class DataCurve
- java.lang.Object
-
- jcckit.data.DataContainer
-
- jcckit.data.DataCurve
-
- All Implemented Interfaces:
- DataElement
public class DataCurve extends DataContainer implements DataElement
A curve is aDataContainerofDataPoints.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringTITLE_KEYConfig parameter key.static java.lang.StringX_KEYConfig parameter key.static java.lang.StringY_KEYConfig parameter key.
-
Constructor Summary
Constructors Constructor and Description DataCurve(ConfigParameters config)Creates an instance from the specified config parameters.DataCurve(java.lang.String title)Creates an empty instance with the specified title.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DataContainergetContainer()Returns theDataPlotcontaining this curve.java.lang.StringgetTitle()Returns the title of this curve.voidsetContainer(DataContainer container)Sets theDataPlotwhere this is a curve of.-
Methods inherited from class jcckit.data.DataContainer
addDataListener, addElement, getElement, getIndexOf, getNumberOfElements, insertElementAt, removeDataListener, removeElementAt, replaceElementAt
-
-
-
-
Field Detail
-
X_KEY
public static final java.lang.String X_KEY
Config parameter key.- See Also:
- Constant Field Values
-
Y_KEY
public static final java.lang.String Y_KEY
Config parameter key.- See Also:
- Constant Field Values
-
TITLE_KEY
public static final java.lang.String TITLE_KEY
Config parameter key.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataCurve
public DataCurve(java.lang.String title)
Creates an empty instance with the specified title.
-
DataCurve
public DataCurve(ConfigParameters config)
Creates an instance from the specified config parameters.Key & Default Value Type Mandatory Description title = empty string String no Curve title. x double[] yes x-coordinates of the curve points. y double[] yes y-coordinates of the curve points.
-
-
Method Detail
-
getContainer
public DataContainer getContainer()
Returns theDataPlotcontaining this curve.- Specified by:
getContainerin interfaceDataElement- Returns:
- null if this element is not an element of a container.
-
setContainer
public void setContainer(DataContainer container)
Sets theDataPlotwhere this is a curve of.- Specified by:
setContainerin interfaceDataElement- Parameters:
container- Container which should contains this element. Cann be null if this element does not belong to a container.
-
getTitle
public java.lang.String getTitle()
Returns the title of this curve.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG