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