|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jfree.chart.StrokeMap
public class 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.
Constructor Summary | |
---|---|
StrokeMap()
Creates a new (empty) map. |
Method Summary | |
---|---|
void |
clear()
Resets the map to empty. |
java.lang.Object |
clone()
Returns a clone of this StrokeMap . |
boolean |
containsKey(java.lang.Comparable key)
Returns true if the map contains the specified key, and
false otherwise. |
boolean |
equals(java.lang.Object obj)
Tests this map for equality with an arbitrary object. |
java.awt.Stroke |
getStroke(java.lang.Comparable key)
Returns the stroke associated with the specified key, or null . |
void |
put(java.lang.Comparable key,
java.awt.Stroke stroke)
Adds a mapping between the specified key and
stroke values. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StrokeMap()
Method Detail |
---|
public java.awt.Stroke getStroke(java.lang.Comparable key)
null
.
key
- the key (null
not permitted).
null
.
java.lang.IllegalArgumentException
- if key
is
null
.public boolean containsKey(java.lang.Comparable key)
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.public void put(java.lang.Comparable key, java.awt.Stroke stroke)
key
and
stroke
values.
key
- the key (null
not permitted).stroke
- the stroke.public void clear()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null
permitted).
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
StrokeMap
.
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if any key is not cloneable.
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |