|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcckit.graphic.GraphicalComposite
Container for GraphicalElements
.
Constructor Summary | |
GraphicalComposite(ClippingShape clippingShape)
Creates an instance with the specified clipping shape. |
Method Summary | |
void |
addElement(GraphicalElement element)
Adds the specified element at the end of the list of elements. |
ClippingShape |
getClippingShape()
Returns the clipping shape. |
void |
removeAllElements()
Remove all elements. |
void |
renderWith(Renderer renderer)
Renders all GraphicalElements in the sequence
they have been added. |
void |
replaceElementAt(int index,
GraphicalElement element)
Replaces the specified element at the specified index of the list of elements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GraphicalComposite(ClippingShape clippingShape)
clippingShape
- Clipping shape or null if no clipping.Method Detail |
public ClippingShape getClippingShape()
public void addElement(GraphicalElement element)
element
- Element to be added. null is not allowed.
java.lang.NullPointerException
- if element == nullpublic void removeAllElements()
public void replaceElementAt(int index, GraphicalElement element)
element
- New element. null is not allowed.
java.lang.NullPointerException
- if element == nullpublic void renderWith(Renderer renderer)
GraphicalElements
in the sequence
they have been added.
renderWith
in interface GraphicalElement
renderer
- Renderer which implements all renderer interfaces
necessary to render the child elements.
java.lang.IllegalArgumentException
- if renderer is not
an instance of GraphicalCompositeRenderer.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |