|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjcckit.data.DataContainer
jcckit.data.DataCurve
public class DataCurve
A curve is a DataContainer of DataPoints.
| Field Summary | |
|---|---|
static String |
TITLE_KEY
Config parameter key. |
static String |
X_KEY
Config parameter key. |
static String |
Y_KEY
Config parameter key. |
| Constructor Summary | |
|---|---|
DataCurve(ConfigParameters config)
Creates an instance from the specified config parameters. |
|
DataCurve(String title)
Creates an empty instance with the specified title. |
|
| Method Summary | |
|---|---|
DataContainer |
getContainer()
Returns the DataPlot containing this curve. |
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 String X_KEY
public static final String Y_KEY
public static final String TITLE_KEY
| Constructor Detail |
|---|
public DataCurve(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 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 | |||||||||