|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdrawing.graphics.GraphicsElement
org.jdrawing.graphics.Group
Combines several elements.
| Field Summary |
| Fields inherited from class org.jdrawing.graphics.GraphicsElement |
BACKGROUND, COLOR, COMPOSITE, FONT, PAINT, parent, position, STROKE, TRANSFORM |
| Constructor Summary | |
Group()
|
|
| Method Summary | |
void |
addElement(GraphicsElement element)
Append the specified element to the end of this group. |
void |
addElementAt(GraphicsElement element,
int index)
Adds the element to the group at specified position. |
void |
elementsChanged(GraphicsElement[] elements)
Notify parent about elements was changed. |
protected void |
elementsInserted(GraphicsElement[] elements)
Notify parent about new elements was inserted. |
protected void |
elementsRemoved(GraphicsElement[] elements)
Notify parent about elements was removed. |
GraphicsElement |
getElementAt(int index)
Gets the element in this group at specified position. |
int |
getElementCount()
Gets the number of elements in this group. |
int |
indexOf(GraphicsElement element)
Returns the index of the element in the group. |
void |
removeAllElements()
Removes all the elements from this group. |
void |
removeElement(int index)
Removes the element, specified by index, from this group. |
| Methods inherited from class org.jdrawing.graphics.GraphicsElement |
addStyle, getParent, getStyle, getStyles, getTransform |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Group()
| Method Detail |
public void addElement(GraphicsElement element)
element - element to be added to the group
public void addElementAt(GraphicsElement element,
int index)
element - element to be added to the groupindex - position for elementpublic void removeElement(int index)
index - the index of the component to be removed.public void removeAllElements()
public int getElementCount()
public GraphicsElement getElementAt(int index)
index - index of the element to get
public int indexOf(GraphicsElement element)
element - element to search for
protected void elementsInserted(GraphicsElement[] elements)
elements - inserted elementsprotected void elementsRemoved(GraphicsElement[] elements)
elements - removed elementspublic void elementsChanged(GraphicsElement[] elements)
elements - changed elements
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||