java.lang.Object | |
↳ | org.jfree.chart.StrokeMap |
A storage structure that maps Comparable
instances with
Stroke
instances.
To support cloning and serialization, you should only use keys that are
cloneable and serializable. Special handling for the Stroke
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
StrokeMap . | |||||||||||
Returns
true if the map contains the specified key, and
false otherwise. | |||||||||||
Tests this map for equality with an arbitrary object.
| |||||||||||
Returns the stroke associated with the specified key, or
null . | |||||||||||
Adds a mapping between the specified
key and
stroke values. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new (empty) map.
Resets the map to empty.
Returns a clone of this StrokeMap
.
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 stroke 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
stroke
values.
key | the key (null not permitted). |
---|---|
stroke | the stroke. |