|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.swtlayeredgraph.LayerContainer<LayerItem>
public class LayerContainer<LayerItem extends LayerDrawable>
| Constructor Summary | |
|---|---|
LayerContainer()
Default constructor. |
|
LayerContainer(ChangeListener listener)
Builds a new layer container with a change listener |
|
| Method Summary | |
|---|---|
void |
addItem(LayerItem item)
Adds an item to the list. |
void |
addItemsAfter(LayerItem item,
java.util.List<LayerItem> addItems)
Adds the specified items starting after the specified item. |
void |
addItemsAt(int index,
java.util.List<LayerItem> addItems)
Adds the specified items starting at the specified index. |
void |
addItemsBefore(LayerItem item,
java.util.List<LayerItem> addItems)
Adds the specified items starting before the specified item. |
void |
addItemsInBack(java.util.List<LayerItem> addItems)
Adds the specified items starting at the back of the list. |
void |
addItemsInFront(java.util.List<LayerItem> addItems)
Adds the specified items starting at the front of the list. |
protected java.util.List<GraphPoint> |
getExtentPoints()
Gets the list of extent points. |
LayerItem |
getItem(java.lang.String name)
Returns the requested item. |
java.lang.Integer |
getItemCount()
Gets the number of items in this group. |
java.util.List<java.lang.String> |
getItemNames()
Gets a list of the names of items. |
java.util.List<LayerItem> |
getItems()
|
java.lang.Boolean |
isDirty()
Checks if this object is dirty. |
void |
moveBackward(LayerItem item)
Moves item backward by one. |
void |
moveBackward(java.lang.String name)
Moves item backward by one. |
void |
moveForward(LayerItem item)
Moves item forward by one. |
void |
moveForward(java.lang.String name)
Moves item forward by one. |
void |
moveToBack(LayerItem item)
Moves the specified item to the back of the list. |
void |
moveToBack(java.lang.String name)
Moves the specified item to the back of the list. |
void |
moveToFront(LayerItem item)
Moves the specified item to the front of the list. |
void |
moveToFront(java.lang.String name)
Moves the specified item to the front of the list. |
void |
removeItem(LayerItem item)
Removes the specified item from the list. |
void |
removeItem(java.lang.String itemName)
Removes the specified item from the list. |
void |
setDirty(java.lang.Boolean isDirty)
Sets the dirty flag. |
void |
setItems(java.util.List<LayerItem> setItems)
Sets the list of items to the specified list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayerContainer()
public LayerContainer(ChangeListener listener)
listener - Name change listener called when the extent point list
changes.| Method Detail |
|---|
public void addItem(LayerItem item)
throws DuplicateItemException
item - LayerItem item to add.
java.lang.IllegalArgumentException - If item is null or empty.
DuplicateItemException - Thrown if the name of the item matches any other items or
groups in this group.public void removeItem(LayerItem item)
item - The item to be removed.
java.lang.IllegalArgumentException - If item is null.public void removeItem(java.lang.String itemName)
itemName - The name of the item to be removed.
java.lang.IllegalArgumentException - If itemName is null or empty.public LayerItem getItem(java.lang.String name)
name - Name of item to get.
java.lang.IllegalArgumentException - If name is null or empty.public java.lang.Integer getItemCount()
public java.util.List<LayerItem> getItems()
public void setItems(java.util.List<LayerItem> setItems)
throws DuplicateItemException
setItems - List of items to add.
java.lang.IllegalArgumentException - If items is null.
DuplicateItemException - If there was a duplicate in the list.public void moveToFront(LayerItem item)
item - The item to move to the front.
java.lang.IllegalArgumentException - If item is null.public void moveToFront(java.lang.String name)
name - Name of the item to move to the front of the list.
java.lang.IllegalArgumentException - If name is null or empty.public void moveToBack(LayerItem item)
item - Item to move to the back of the list.
java.lang.IllegalArgumentException - If item is null.public void moveToBack(java.lang.String name)
name - Name of the item to move to the back of the list.
java.lang.IllegalArgumentException - If name is null or empty.public void moveForward(LayerItem item)
item - Item to move forward
java.lang.IllegalArgumentException - If item is null.public void moveForward(java.lang.String name)
name - Name of item to move.
java.lang.IllegalArgumentException - If name is null or empty.public void moveBackward(LayerItem item)
item - Item to move backward
java.lang.IllegalArgumentException - If item is null.public void moveBackward(java.lang.String name)
item - Item to move backward
java.lang.IllegalArgumentException - If item is null.
public void addItemsAt(int index,
java.util.List<LayerItem> addItems)
index - The index to add items to.addItems - Items to add.
java.lang.IllegalArgumentException - If items is null, or index is negative.
DuplicateItemException - If items contains duplicates or has an item that is already
in the list.
public void addItemsAfter(LayerItem item,
java.util.List<LayerItem> addItems)
addItem - The item to add after.items - Items to add.
java.lang.IllegalArgumentException - If items or item is null.
DuplicateItemException - If items contains duplicates or has an item that is already
in the list.
public void addItemsBefore(LayerItem item,
java.util.List<LayerItem> addItems)
addItem - The item to add before.items - Items to add.
java.lang.IllegalArgumentException - If items or item is null.
DuplicateItemException - If items contains duplicates or has an item that is already
in the list.public void addItemsInFront(java.util.List<LayerItem> addItems)
addItems - Items to add to the front of the list.
java.lang.IllegalArgumentException - If items is null.
DuplicateItemException - If there was a duplicate item in the list.public void addItemsInBack(java.util.List<LayerItem> addItems)
addItems - Items to add to the back of the list.
java.lang.IllegalArgumentException - If items is null.
DuplicateItemException - If there was a duplicate item in the list.public java.util.List<java.lang.String> getItemNames()
protected java.util.List<GraphPoint> getExtentPoints()
public void setDirty(java.lang.Boolean isDirty)
isDirty - Flag used to indicate if this object is dirty.public java.lang.Boolean isDirty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||