Documentation of 'kcl.waterloo.plotmodel2D.GJDataModel' Java class
GJDataModel
kcl.waterloo.plotmodel2D

Class 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 the GJPlotInterface. Security: Note that data within the model is exposed by reference via the setter and getter methods.
    • 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 calling GJDefaults.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 calling GJDefaults.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
      • 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
      • 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

You see the box below because you did not login.