Documentation of 'kcl.waterloo.graphics.data.GJAbstractDataVector' Java class
GJAbstractDataVector
kcl.waterloo.graphics.data

Class GJAbstractDataVector<T>

    • Method Detail

      • clearDataBufferData

        public void clearDataBufferData()
        Sets the vector in the DataBuffer to null This method should fire a PropertyChangeEvent
        Specified by:
        clearDataBufferData in interface GJDataVectorInterface<T>
      • setDataBuffer

        public final void setDataBuffer(java.lang.Object buffer)
        Description copied from interface: GJDataVectorInterface
        Sets the DataBuffer used to store the data. The buffer will be copied by reference.
        Specified by:
        setDataBuffer in interface GJDataVectorInterface<T>
        Parameters:
        buffer - the object array or wrapper.
      • getEntry

        public final java.lang.Object getEntry(int index)
        Description copied from interface: GJDataVectorInterface
        Returns a value from the DataBuffer
        Specified by:
        getEntry in interface GJDataVectorInterface<T>
        Parameters:
        index - of the required entry
        Returns:
        the value a a double
      • isCategorical

        public boolean isCategorical()
        Determines if this data set is categorical i.e. has that categories is non-null.
        Specified by:
        isCategorical in interface GJDataVectorInterface<T>
        Returns:
        true if Categories != null
      • setCategory

        public void setCategory(double index,
                                java.lang.String val)
        Associates a Category containing {code String} s with the specified double value.
        Specified by:
        setCategory in interface GJDataVectorInterface<T>
        Parameters:
        index -
        val -
      • getCategories

        public java.util.LinkedHashMap<java.lang.Double,Category> getCategories()
        Returns the LinkedHasMap of category settings. See GJAbstractDataVector#categories categories in GJAbstractDataVector.
        Specified by:
        getCategories in interface GJDataVectorInterface<T>
        Returns:
        a LinkedHashMap
      • setCategories

        public void setCategories(java.util.LinkedHashMap<java.lang.Double,Category> cat)
        Sets the LinkedHashMap containing the categories.
        Specified by:
        setCategories in interface GJDataVectorInterface<T>
        Parameters:
        cat - a LinkedHashMap map.
      • setCategories

        public void setCategories(java.lang.String... cat)
      • setDataBufferData

        public void setDataBufferData(java.util.Map m)
        Sets the vector in the DataBuffer to a series incrementing by 1 for each element. m must be a Map with a single key, which determines the start value of the series while the value corresponding to the key represents the upper limit of the series. TODO: Should this be removed?? This method should fire a PropertyChangeEvent when the buffer data are changed
        Specified by:
        setDataBufferData in interface GJDataVectorInterface<T>
        Parameters:
        m - a Map of size equal to 1.
      • propertyChange

        public void propertyChange(java.beans.PropertyChangeEvent pce)
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.