public final class GJDataModel extends GJAbstractObservable
GJPlotInterface
.
Security: Note that data within the model is exposed by reference via the
setter and getter methods.Constructor and Description |
---|
GJDataModel()
Constructor for XML de-serialization only.
|
Modifier and Type | Method and Description |
---|---|
static GJDataModel |
createInstance()
Factory method for construction.
|
static GJDataModel |
createInstance(GJPlotInterface p)
Deprecated.
|
double[] |
getExtraData0() |
double[] |
getExtraData1() |
double[] |
getExtraData2() |
double[] |
getExtraData3() |
java.lang.Object |
getExtraObject() |
java.util.ArrayList<GJPlotInterface> |
getPlotList()
Deprecated.
|
GJDataVectorInterface<?> |
getXData() |
GJDataVectorInterface<?> |
getYData() |
void |
propertyChange(java.beans.PropertyChangeEvent pce) |
void |
setExtraData0(double[] extraData0) |
void |
setExtraData1(double[] extraData1) |
void |
setExtraData2(double[] extraData2) |
void |
setExtraData3(double[] extraData3) |
void |
setExtraObject(java.lang.Object o) |
void |
setPlotList(java.util.ArrayList<GJPlotInterface> plotList)
Deprecated.
|
void |
setXData(GJDataVectorInterface<?> xData) |
void |
setYData(GJDataVectorInterface<?> yData) |
addLink, addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getLinks, getPCS, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, hasSelfListener, removeLink, removePropertyChangeListener, removePropertyChangeListener, setLinks
public GJDataModel()
public static GJDataModel createInstance()
GJDefaults.getDataClass()
. Installs the model
as a listener to itself.@Deprecated public static GJDataModel createInstance(GJPlotInterface p)
GJDefaults.getDataClass()
.
Installs the model as a listener to itself.
Installs the supplied plot as a listener to the model.p
- the plot this data model will be associated with.public final GJDataVectorInterface<?> getXData()
public final GJDataVectorInterface<?> getYData()
public final double[] getExtraData0()
public final double[] getExtraData1()
public final double[] getExtraData2()
public final double[] getExtraData3()
public final java.lang.Object getExtraObject()
public final void setExtraObject(java.lang.Object o)
public final void setExtraData0(double[] extraData0)
extraData0
- the extraData0 to setpublic final void setExtraData1(double[] extraData1)
extraData1
- the extraData1 to setpublic final void setExtraData2(double[] extraData2)
extraData2
- the extraData2 to setpublic final void setExtraData3(double[] extraData3)
extraData3
- the extraData3 to setpublic final void setXData(GJDataVectorInterface<?> xData)
xData
- public final void setYData(GJDataVectorInterface<?> yData)
yData
- public void propertyChange(java.beans.PropertyChangeEvent pce)
@Deprecated public java.util.ArrayList<GJPlotInterface> getPlotList()
@Deprecated public void setPlotList(java.util.ArrayList<GJPlotInterface> plotList)
plotList
- the plotList to set