|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Container-component which contains other graphical components. Also superclass for specialized containers. Composite pattern is used here.
Field Summary |
Fields inherited from interface fdda.graphics.Component |
SEL_ALL, SEL_EQUALS, SEL_MOVABLES, SEL_NOTHING |
Method Summary | |
void |
addElement(Component element)
Adds an element to the container. |
void |
clear()
Removes all elements from the container. |
Component |
flatten()
Returns a 'flattened' version of the container. |
ListIterator |
getIterator()
Returns an iterator over the container. |
int |
getSize()
Returns the current number of elements |
boolean |
hasElement(Component element)
Checks whether the container contains a certain element. |
boolean |
isFlatteningAllowed()
Returns whether this container allows a 'flattening' operation |
void |
removeElement(Component element)
Removes an element from the container. |
Methods inherited from interface fdda.graphics.Component |
clone, deselect, getGraphicalSystem, getShape, getX, getY, isMovable, isSelected, move, recalculateShape, select, selectableWith, setGraphicalSystem, setXY, visit |
Method Detail |
public void addElement(Component element)
element
- the elementpublic void removeElement(Component element)
element
- the elementpublic boolean hasElement(Component element)
element
- the element
public void clear()
public ListIterator getIterator()
public int getSize()
public boolean isFlatteningAllowed()
flatten()
public Component flatten()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |