Package org.jfree.data
Class DefaultValueDataset
java.lang.Object
org.jfree.data.AbstractDataset
org.jfree.data.DefaultValueDataset
- All Implemented Interfaces:
ObjectInputValidation
,Serializable
,Cloneable
,Dataset
,Value
,ValueDataset
public class DefaultValueDataset extends AbstractDataset implements ValueDataset, Cloneable, Serializable
A default implementation of the
ValueDataset
interface.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DefaultValueDataset()
Constructs a new dataset, initially empty.DefaultValueDataset(double value)
Creates a new dataset.DefaultValueDataset(Number value)
Creates a new dataset. -
Method Summary
Methods inherited from class org.jfree.data.AbstractDataset
addChangeListener, clone, getGroup, removeChangeListener, setGroup, validateObject
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jfree.data.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Constructor Details
-
DefaultValueDataset
public DefaultValueDataset()Constructs a new dataset, initially empty. -
DefaultValueDataset
public DefaultValueDataset(double value)Creates a new dataset.- Parameters:
value
- the value.
-
DefaultValueDataset
Creates a new dataset.- Parameters:
value
- the initial value.
-
-
Method Details
-
getValue
Returns the value. -
setValue
Sets the value. ADatasetChangeEvent
is sent to all registered listeners.- Parameters:
value
- the new value.
-
equals
Tests this dataset for equality with an arbitrary object. -
hashCode
public int hashCode()Returns a hash code.
-