Example usage for Java org.jfree.data DefaultKeyedValues fields, constructors, methods, implement or subclass
The text is from its open source code.
DefaultKeyedValues() Creates a new collection (initially empty). |
void | addValue(Comparable key, double value) Updates an existing value, or adds a new value to the collection. |
void | addValue(Comparable key, Number value) Adds a new value to the collection, or updates an existing value. |
void | clear() Clears all values from the collection. |
Object | clone() Returns a clone. |
boolean | equals(Object obj) Tests if this object is equal to another. |
Class> | getClass() Returns the runtime class of this Object . |
int | getIndex(Comparable key) Returns the index for a given key. |
int | getItemCount() Returns the number of items (values) in the collection. |
Comparable | getKey(int index) Returns a key. |
List | getKeys() Returns the keys for the values in the collection. |
Number | getValue(int item) Returns a value. |
Number | getValue(Comparable key) Returns the value for a given key. |
void | insertValue(int position, Comparable key, double value) Inserts a new value at the specified position in the dataset or, if there is an existing item with the specified key, updates the value for that item and moves it to the specified position. |
void | insertValue(int position, Comparable key, Number value) Inserts a new value at the specified position in the dataset or, if there is an existing item with the specified key, updates the value for that item and moves it to the specified position. |
void | removeValue(int index) Removes a value from the collection. |
void | removeValue(Comparable key) Removes a value from the collection. |
void | setValue(Comparable key, double value) Updates an existing value, or adds a new value to the collection. |
void | setValue(Comparable key, Number value) Updates an existing value, or adds a new value to the collection. |
void | sortByKeys(SortOrder order) Sorts the items in the list by key. |
void | sortByValues(SortOrder order) Sorts the items in the list by value. |