|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.data.KeyToGroupMap
A class that maps keys (instances of Comparable to groups.
| Constructor Summary | |
KeyToGroupMap()
Creates a new map with a default group named 'Default Group'. |
|
KeyToGroupMap(java.lang.Comparable defaultGroup)
Creates a new map with the specified default group. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a clone of the map. |
boolean |
equals(java.lang.Object obj)
Tests the map for equality against an arbitrary object. |
java.lang.Comparable |
getGroup(java.lang.Comparable key)
Returns the group that a key is mapped to. |
int |
getGroupCount()
Returns the number of groups in the map. |
int |
getGroupIndex(java.lang.Comparable group)
Returns the index for the group. |
java.util.List |
getGroups()
Returns the groups (always including the default group) in the map. |
void |
mapKeyToGroup(java.lang.Comparable key,
java.lang.Comparable group)
Maps a key to a group. |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public KeyToGroupMap()
public KeyToGroupMap(java.lang.Comparable defaultGroup)
defaultGroup - the default group (null not permitted).| Method Detail |
public java.util.List getGroups()
public int getGroupCount()
public int getGroupIndex(java.lang.Comparable group)
group - the group.
public java.lang.Comparable getGroup(java.lang.Comparable key)
key - the key.
null, returns the default group if there
is no mapping for the specified key).
public void mapKeyToGroup(java.lang.Comparable key,
java.lang.Comparable group)
key - the key (null not permitted).group - the group (null permitted, replaced by default group).public boolean equals(java.lang.Object obj)
obj - the object to test against (null permitted).
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneablejava.lang.CloneNotSupportedException - if there is a problem cloning the map.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||