|
JFreeChart 1.0.14-redhat-2 | |||||||||
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(Number value)
Creates a new dataset with the specified value. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Tests this dataset for equality with an arbitrary object. |
Number |
getValue()
Returns the value. |
int |
hashCode()
Returns a hash code. |
void |
setValue(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(Number value)
value
- the initial value (null
permitted).Method Detail |
---|
public Number getValue()
getValue
in interface Value
null
).public void setValue(Number value)
DatasetChangeEvent
to all registered
listeners.
value
- the new value (null
permitted).public boolean equals(Object obj)
equals
in class Object
obj
- the object (null
permitted).
public int hashCode()
hashCode
in class Object
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |