java.lang.Object | |
↳ | org.jfree.data.KeyToGroupMap |
A class that maps keys (instances of Comparable
) to groups.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new map with a default group named 'Default Group'.
| |||||||||||
Creates a new map with the specified default group.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a clone of the map.
| |||||||||||
Tests the map for equality against an arbitrary object.
| |||||||||||
Returns the group that a key is mapped to.
| |||||||||||
Returns the number of groups in the map.
| |||||||||||
Returns the index for the group.
| |||||||||||
Returns a list of the groups (always including the default group) in the
map.
| |||||||||||
Returns the number of keys mapped to the specified group.
| |||||||||||
Maps a key to a group.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new map with a default group named 'Default Group'.
Creates a new map with the specified default group.
defaultGroup | the default group (null not permitted).
|
---|
Returns a clone of the map.
CloneNotSupportedException | if there is a problem cloning the map. |
---|
Tests the map for equality against an arbitrary object.
obj | the object to test against (null permitted). |
---|
Returns the group that a key is mapped to.
key | the key (null not permitted). |
---|
null
, returns the default group if
there is no mapping for the specified key).
Returns the number of groups in the map.
Returns the index for the group.
group | the group. |
---|
Returns a list of the groups (always including the default group) in the map. The returned list is independent of the map, so altering the list will have no effect.
null
).
Returns the number of keys mapped to the specified group. This method won't always return an accurate result for the default group, since explicit mappings are not required for this group.
group | the group (null not permitted). |
---|
Maps a key to a group.
key | the key (null not permitted). |
---|---|
group | the group (null permitted, clears any
existing mapping).
|