| java.lang.Object org.jfree.data.general.AbstractDataset org.jfree.data.general.DefaultKeyedValueDataset
DefaultKeyedValueDataset | public DefaultKeyedValueDataset()(Code) | | Constructs a new dataset, initially empty.
|
DefaultKeyedValueDataset | public DefaultKeyedValueDataset(Comparable key, Number value)(Code) | | Creates a new dataset with the specified initial value.
Parameters: key - the key. Parameters: value - the value (null permitted). |
DefaultKeyedValueDataset | public DefaultKeyedValueDataset(KeyedValue data)(Code) | | Creates a new dataset that uses the data from a
KeyedValue
instance.
Parameters: data - the data (null permitted). |
equals | public boolean equals(Object obj)(Code) | | Tests this dataset for equality with an arbitrary object.
Parameters: obj - the object. A boolean. |
getKey | public Comparable getKey()(Code) | | Returns the key associated with the value, or null if the
dataset has no data item.
The key. |
getValue | public Number getValue()(Code) | | Returns the value.
The value (possibly null ). |
hashCode | public int hashCode()(Code) | | Returns a hash code.
A hash code. |
setValue | public void setValue(Comparable key, Number value)(Code) | | Sets the value for the dataset and sends a
DatasetChangeEvent to
all registered listeners.
Parameters: key - the key. Parameters: value - the value (null permitted). |
updateValue | public void updateValue(Number value)(Code) | | Updates the value.
Parameters: value - the new value (null permitted). |
|
|