|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bbn.openmap.tools.icon.IconPartCollectionEntry | +--com.bbn.openmap.tools.icon.IconPartCollection
A collection of IconParts, available by name.
Field Summary | |
protected java.util.List |
collections
|
protected java.util.Map |
entryMap
|
Fields inherited from class com.bbn.openmap.tools.icon.IconPartCollectionEntry |
description, name, part |
Constructor Summary | |
protected |
IconPartCollection()
|
|
IconPartCollection(java.lang.String name,
java.lang.String description)
Create a collection with a name and description. |
Method Summary | |
void |
add(IconPartCollectionEntry entry)
Add an entry to the collection. |
void |
clear()
Clear the entries in the collection. |
IconPart |
compose(java.util.List list)
Create an IconPart from the list of entry names. |
java.util.List |
composeDescription(java.util.List list)
Get a list of description Strings from a list of entry names. |
IconPart |
get(java.lang.String name)
Get an icon part for the given name. |
IconPart |
get(java.lang.String name,
DrawingAttributes da)
Get an icon part for the given name set with the given rendering attributes. |
protected java.util.List |
getCollections()
Get the List of IconPartCollections that have been added. |
java.lang.String |
getDescription(java.lang.String name)
Get a description for the given name. |
protected java.util.Map |
getEntryMap()
Get the entry Map. |
IconPart |
getIconPart()
|
java.util.Set |
keySet()
Get the set of names for the entries of this collection. |
java.lang.Object |
remove(IconPartCollectionEntry entry)
Remove an entry from the collection. |
protected void |
setCollections(java.util.List list)
Set the List to be used for holding IconPartCollections added to this collection. |
protected void |
setEntryMap(java.util.Map map)
Set the entry Map. |
void |
setIconPart(IconPart part)
|
Methods inherited from class com.bbn.openmap.tools.icon.IconPartCollectionEntry |
getDescription, getName, setDescription, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Map entryMap
protected java.util.List collections
Constructor Detail |
protected IconPartCollection()
public IconPartCollection(java.lang.String name, java.lang.String description)
Method Detail |
public void add(IconPartCollectionEntry entry)
public java.lang.Object remove(IconPartCollectionEntry entry)
public void clear()
public java.util.Set keySet()
public IconPart get(java.lang.String name, DrawingAttributes da)
public IconPart get(java.lang.String name)
public java.lang.String getDescription(java.lang.String name)
public IconPart compose(java.util.List list)
list
- a List of Strings, with the strings being names of
entries into this collection.public java.util.List composeDescription(java.util.List list)
list
- a List of Strings, with the strings being names of
entries into this collection.
protected void setEntryMap(java.util.Map map)
protected java.util.Map getEntryMap()
protected void setCollections(java.util.List list)
protected java.util.List getCollections()
public void setIconPart(IconPart part)
setIconPart
in class IconPartCollectionEntry
public IconPart getIconPart()
getIconPart
in class IconPartCollectionEntry
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |