|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.general.AbstractDataset
org.jfree.data.general.DefaultValueDataset
public class DefaultValueDataset
A dataset that stores a single value (that is possibly null
).
This class provides a default implementation of the ValueDataset
interface.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.jfree.data.general.AbstractDataset |
---|
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.general.Dataset |
---|
addChangeListener, getGroup, removeChangeListener, setGroup |
Methods inherited from interface org.jfree.util.PublicCloneable |
---|
clone |
Constructor Detail |
---|
public DefaultValueDataset()
public DefaultValueDataset(double value)
value
- the value.public DefaultValueDataset(java.lang.Number value)
value
- the initial value (null
permitted).Method Detail |
---|
public java.lang.Number getValue()
getValue
in interface Value
null
).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
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |