|
||||||||||
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
public class IconPartCollection
A collection of IconParts, available by name.
Field Summary | |
---|---|
protected java.util.List<IconPartCollection> |
collections
|
protected java.util.Map<java.lang.String,IconPartCollectionEntry> |
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<java.lang.String> list)
Create an IconPart from the list of entry names. |
java.util.List<java.lang.String> |
composeDescription(java.util.List<java.lang.String> 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<IconPartCollection> |
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<java.lang.String,IconPartCollectionEntry> |
getEntryMap()
Get the entry Map. |
IconPart |
getIconPart()
|
java.util.Set<java.lang.String> |
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<IconPartCollection> list)
Set the List to be used for holding IconPartCollections added to this collection. |
protected void |
setEntryMap(java.util.Map<java.lang.String,IconPartCollectionEntry> 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<java.lang.String,IconPartCollectionEntry> entryMap
protected java.util.List<IconPartCollection> 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<java.lang.String> 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<java.lang.String> list)
list
- a List of Strings, with the strings being names of entries
into this collection.public java.util.List<java.lang.String> composeDescription(java.util.List<java.lang.String> list)
list
- a List of Strings, with the strings being names of entries
into this collection.
protected void setEntryMap(java.util.Map<java.lang.String,IconPartCollectionEntry> map)
protected java.util.Map<java.lang.String,IconPartCollectionEntry> getEntryMap()
protected void setCollections(java.util.List<IconPartCollection> list)
protected java.util.List<IconPartCollection> 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 |