kcl.waterloo.plotmodel2D
Class GJDataModel
- java.lang.Object
-
- kcl.waterloo.observable.GJAbstractObservable
-
- kcl.waterloo.plotmodel2D.GJDataModel
-
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener, GJLinkableInterface, GJObservableInterface
public final class GJDataModel extends GJAbstractObservable
Data model used by all plot classes implementing theGJPlotInterface. Security: Note that data within the model is exposed by reference via the setter and getter methods.
-
-
Constructor Summary
Constructors Constructor and Description GJDataModel()Constructor for XML de-serialization only.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description static GJDataModelcreateInstance()Factory method for construction.static GJDataModelcreateInstance(GJPlotInterface p)Deprecated.double[]getExtraData0()double[]getExtraData1()double[]getExtraData2()double[]getExtraData3()java.lang.ObjectgetExtraObject()java.util.ArrayList<GJPlotInterface>getPlotList()Deprecated.GJDataVectorInterface<?>getXData()GJDataVectorInterface<?>getYData()voidpropertyChange(java.beans.PropertyChangeEvent pce)voidsetExtraData0(double[] extraData0)voidsetExtraData1(double[] extraData1)voidsetExtraData2(double[] extraData2)voidsetExtraData3(double[] extraData3)voidsetExtraObject(java.lang.Object o)voidsetPlotList(java.util.ArrayList<GJPlotInterface> plotList)Deprecated.voidsetXData(GJDataVectorInterface<?> xData)voidsetYData(GJDataVectorInterface<?> yData)-
Methods inherited from class kcl.waterloo.observable.GJAbstractObservable
addLink, addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getLinks, getPCS, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, hasSelfListener, removeLink, removePropertyChangeListener, removePropertyChangeListener, setLinks
-
-
-
-
Constructor Detail
-
GJDataModel
public GJDataModel()
Constructor for XML de-serialization only. Do not use.
-
-
Method Detail
-
createInstance
public static GJDataModel createInstance()
Factory method for construction. The class of the underlying XData and YData fields will be the class returned by callingGJDefaults.getDataClass(). Installs the model as a listener to itself.- Returns:
- the GJDataModel
-
createInstance
@Deprecated public static GJDataModel createInstance(GJPlotInterface p)
Deprecated.Factory method for construction. The class of the underlying XData and YData fields will be the class returned by callingGJDefaults.getDataClass(). Installs the model as a listener to itself. Installs the supplied plot as a listener to the model.- Parameters:
p- the plot this data model will be associated with.- Returns:
- the GJDataModel
-
getXData
public final GJDataVectorInterface<?> getXData()
- Returns:
- the xData object
-
getYData
public final GJDataVectorInterface<?> getYData()
- Returns:
- the yData object
-
getExtraData0
public final double[] getExtraData0()
- Returns:
- the extraData0
-
getExtraData1
public final double[] getExtraData1()
- Returns:
- the extraData1
-
getExtraData2
public final double[] getExtraData2()
- Returns:
- the extraData2
-
getExtraData3
public final double[] getExtraData3()
- Returns:
- the extraData3
-
getExtraObject
public final java.lang.Object getExtraObject()
-
setExtraObject
public final void setExtraObject(java.lang.Object o)
-
setExtraData0
public final void setExtraData0(double[] extraData0)
- Parameters:
extraData0- the extraData0 to set
-
setExtraData1
public final void setExtraData1(double[] extraData1)
- Parameters:
extraData1- the extraData1 to set
-
setExtraData2
public final void setExtraData2(double[] extraData2)
- Parameters:
extraData2- the extraData2 to set
-
setExtraData3
public final void setExtraData3(double[] extraData3)
- Parameters:
extraData3- the extraData3 to set
-
setXData
public final void setXData(GJDataVectorInterface<?> xData)
- Parameters:
xData-
-
setYData
public final void setYData(GJDataVectorInterface<?> yData)
- Parameters:
yData-
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent pce)
-
getPlotList
@Deprecated public java.util.ArrayList<GJPlotInterface> getPlotList()
Deprecated.- Returns:
- the plotList
-
setPlotList
@Deprecated public void setPlotList(java.util.ArrayList<GJPlotInterface> plotList)
Deprecated.- Parameters:
plotList- the plotList to set
-
-
DMelt 3.0 © DataMelt by jWork.ORG