java.lang.Object | |
↳ | org.jfree.chart.PaintMap |
A storage structure that maps Comparable
instances with
Paint
instances.
To support cloning and serialization, you should only use keys that are
cloneable and serializable. Special handling for the Paint
instances is included in this class.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new (empty) map.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Resets the map to empty.
| |||||||||||
Returns a clone of this
PaintMap . | |||||||||||
Returns
true if the map contains the specified key, and
false otherwise. | |||||||||||
Tests this map for equality with an arbitrary object.
| |||||||||||
Returns the paint associated with the specified key, or
null . | |||||||||||
Adds a mapping between the specified
key and
paint values. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new (empty) map.
Resets the map to empty.
Returns a clone of this PaintMap
.
CloneNotSupportedException | if any key is not cloneable. |
---|
Returns true
if the map contains the specified key, and
false
otherwise.
key | the key. |
---|
true
if the map contains the specified key, and
false
otherwise.
Tests this map for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the paint associated with the specified key, or
null
.
key | the key (null not permitted). |
---|
null
.IllegalArgumentException | if key is
null .
|
---|
Adds a mapping between the specified key
and
paint
values.
key | the key (null not permitted). |
---|---|
paint | the paint. |
IllegalArgumentException | if key is
null .
|
---|