public class DefaultValueDataset extends AbstractDataset implements ValueDataset, java.lang.Cloneable, org.jfree.util.PublicCloneable, java.io.Serializable
null
).
This class provides a default implementation of the ValueDataset
interface.Constructor and Description |
---|
DefaultValueDataset()
Constructs a new dataset, initially empty.
|
DefaultValueDataset(double value)
Creates a new dataset with the specified value.
|
DefaultValueDataset(java.lang.Number value)
Creates a new dataset with the specified value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Tests this dataset for equality with an arbitrary object.
|
java.lang.Number |
getValue()
Returns the value.
|
int |
hashCode()
Returns a hash code.
|
void |
setValue(java.lang.Number value)
Sets the value and sends a
DatasetChangeEvent to all registered
listeners. |
addChangeListener, clone, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObject
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addChangeListener, getGroup, removeChangeListener, setGroup
public DefaultValueDataset()
public DefaultValueDataset(double value)
value
- the value.public DefaultValueDataset(java.lang.Number value)
value
- the initial value (null
permitted).public java.lang.Number getValue()
public void setValue(java.lang.Number value)
DatasetChangeEvent
to all registered
listeners.value
- the new value (null
permitted).public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null
permitted).public int hashCode()
hashCode
in class java.lang.Object