org.jfree.chart
Class StrokeMap
java.lang.Object
org.jfree.chart.StrokeMap
- Cloneable, Serializable
extends java.lang.Object
implements Cloneable, Serializable
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.
void | clear() - Resets the map to empty.
|
Object | clone() - Returns a clone of this
StrokeMap .
|
boolean | containsKey(Comparable key) - Returns
true if the map contains the specified key, and
false otherwise.
|
boolean | equals(Object obj) - Tests this map for equality with an arbitrary object.
|
Stroke | getStroke(Comparable key) - Returns the stroke associated with the specified key, or
null .
|
void | put(Comparable key, Stroke stroke) - Adds a mapping between the specified
key and
stroke values.
|
StrokeMap
public StrokeMap()
Creates a new (empty) map.
clear
public void clear()
Resets the map to empty.
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of this StrokeMap
.
- A clone of this instance.
containsKey
public boolean containsKey(Comparable key)
Returns true
if the map contains the specified key, and
false
otherwise.
true
if the map contains the specified key, and
false
otherwise.
equals
public boolean equals(Object obj)
Tests this map for equality with an arbitrary object.
obj
- the object (null
permitted).
getStroke
public Stroke getStroke(Comparable key)
Returns the stroke associated with the specified key, or
null
.
key
- the key (null
not permitted).
put
public void put(Comparable key,
Stroke stroke)
Adds a mapping between the specified key
and
stroke
values.
key
- the key (null
not permitted).stroke
- the stroke.