|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.data.AbstractDataset | +--org.jfree.data.DefaultKeyedValueDataset
A default implementation of the KeyedValueDataset
interface.
Constructor Summary | |
DefaultKeyedValueDataset()
Constructs a new dataset, initially empty. |
|
DefaultKeyedValueDataset(java.lang.Comparable key,
java.lang.Number value)
Creates a new dataset with the specified initial value. |
|
DefaultKeyedValueDataset(KeyedValue data)
Creates a new dataset that uses the data from a KeyedValue instance. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Tests this dataset for equality with an arbitrary object. |
java.lang.Comparable |
getKey()
Returns the key associated with the value. |
java.lang.Number |
getValue()
Returns the value. |
void |
setValue(java.lang.Comparable key,
java.lang.Number value)
Sets the value for the dataset. |
void |
updateValue(java.lang.Number value)
Updates the value. |
Methods inherited from class org.jfree.data.AbstractDataset |
addChangeListener, fireDatasetChanged, getGroup, notifyListeners, removeChangeListener, setGroup |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.Dataset |
addChangeListener, getGroup, removeChangeListener, setGroup |
Constructor Detail |
public DefaultKeyedValueDataset()
public DefaultKeyedValueDataset(java.lang.Comparable key, java.lang.Number value)
key
- the key.value
- the value.public DefaultKeyedValueDataset(KeyedValue data)
KeyedValue
instance.
data
- the data.Method Detail |
public java.lang.Comparable getKey()
getKey
in interface KeyedValue
public java.lang.Number getValue()
getValue
in interface Value
public void updateValue(java.lang.Number value)
value
- the new value (null
permitted).public void setValue(java.lang.Comparable key, java.lang.Number value)
DatasetChangeEvent
is
sent to all registered listeners.
key
- the key.value
- the value.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |