DefaultValueDataset
org.jfree.data.general

Class DefaultValueDataset

    • Constructor Detail

      • DefaultValueDataset

        public DefaultValueDataset()
        Constructs a new dataset, initially empty.
      • DefaultValueDataset

        public DefaultValueDataset(double value)
        Creates a new dataset with the specified value.
        Parameters:
        value - the value.
      • DefaultValueDataset

        public DefaultValueDataset(Number value)
        Creates a new dataset with the specified value.
        Parameters:
        value - the initial value (null permitted).
    • Method Detail

      • getValue

        public Number getValue()
        Returns the value.
        Specified by:
        getValue in interface Value
        Returns:
        The value (possibly null).
      • setValue

        public void setValue(Number value)
        Sets the value and sends a DatasetChangeEvent to all registered listeners.
        Parameters:
        value - the new value (null permitted).
      • equals

        public boolean equals(Object obj)
        Tests this dataset for equality with an arbitrary object.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.
      • hashCode

        public int hashCode()
        Returns a hash code.
        Overrides:
        hashCode in class Object
        Returns:
        A hash code.

SCaVis 2.2 © jWork.ORG