org.jfree.data.general
public class DefaultValueDataset extends AbstractDataset implements ValueDataset, Cloneable, PublicCloneable, Serializable
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.
|
Parameters: value the value.
Parameters: value the initial value (null
permitted).
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: The value (possibly null
).
Returns: A hash code.
Parameters: value the new value (null
permitted).