|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjcckit.data.DataContainer
jcckit.data.DataCurve
A curve is a DataContainer of DataPoints.
| Field Summary | |
static java.lang.String |
TITLE_KEY
Config parameter key. |
static java.lang.String |
X_KEY
Config parameter key. |
static java.lang.String |
Y_KEY
Config parameter key. |
| Constructor Summary | |
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 | |
DataContainer |
getContainer()
Returns the DataPlot containing this curve. |
java.lang.String |
getTitle()
Returns the title of this curve. |
protected boolean |
isValid(DataElement element)
Returns true if element is an instance of DataPoint. |
void |
setContainer(DataContainer container)
Sets the DataPlot where this is a curve of. |
| Methods inherited from class jcckit.data.DataContainer |
addDataListener, addElement, getElement, getIndexOf, getNumberOfElements, insertElementAt, removeDataListener, removeElementAt, replaceElementAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String X_KEY
public static final java.lang.String Y_KEY
public static final java.lang.String TITLE_KEY
| Constructor Detail |
public DataCurve(java.lang.String title)
public DataCurve(ConfigParameters config)
| 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 |
public DataContainer getContainer()
DataPlot containing this curve.
getContainer in interface DataElementpublic void setContainer(DataContainer container)
DataPlot where this is a curve of.
setContainer in interface DataElementcontainer - Container which should contains this element. Cann be
null if this element does not belong to a container.public java.lang.String getTitle()
protected boolean isValid(DataElement element)
DataPoint.
isValid in class DataContainerelement - DataElement to be checked.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||