org.jfree.chart
public class StrokeMap extends Object implements Cloneable, Serializable
Comparable
instances with
Stroke
instances.
Stroke
instances is included in this class.
Since: 1.0.3
Constructor Summary | |
---|---|
StrokeMap()
Creates a new (empty) map. |
Method Summary | |
---|---|
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
.
Returns: A clone of this instance.
Throws: CloneNotSupportedException if any key is not cloneable.
true
if the map contains the specified key, and
false
otherwise.
Parameters: key the key.
Returns: true
if the map contains the specified key, and
false
otherwise.
Parameters: obj the object (null
permitted).
Returns: A boolean.
null
.
Parameters: key the key (null
not permitted).
Returns: The stroke, or null
.
Throws: IllegalArgumentException if key
is
null
.
key
and
stroke
values.
Parameters: key the key (null
not permitted). stroke the stroke.