public class IconPartCollection extends IconPartCollectionEntry
Modifier and Type | Field and Description |
---|---|
protected java.util.List<IconPartCollection> |
collections |
protected java.util.Map<java.lang.String,IconPartCollectionEntry> |
entryMap |
description, name, part
Modifier | Constructor and Description |
---|---|
protected |
IconPartCollection() |
|
IconPartCollection(java.lang.String name,
java.lang.String description)
Create a collection with a name and description.
|
Modifier and Type | Method and Description |
---|---|
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) |
getDescription, getName, setDescription, setName
protected java.util.Map<java.lang.String,IconPartCollectionEntry> entryMap
protected java.util.List<IconPartCollection> collections
protected IconPartCollection()
public IconPartCollection(java.lang.String name, java.lang.String description)
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
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details