public class GraphicalComposite extends Object implements GraphicalElement
GraphicalElements.| Constructor and Description |
|---|
GraphicalComposite(ClippingShape clippingShape)
Creates an instance with the specified clipping shape.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public GraphicalComposite(ClippingShape clippingShape)
clippingShape - Clipping shape or null if no clipping.public ClippingShape getClippingShape()
public void addElement(GraphicalElement element)
element - Element to be added. null is not allowed.NullPointerException - if element == nullpublic void removeAllElements()
public void replaceElementAt(int index,
GraphicalElement element)
element - New element. null is not allowed.NullPointerException - if element == nullpublic void renderWith(Renderer renderer)
GraphicalElements in the sequence
they have been added.renderWith in interface GraphicalElementrenderer - Renderer which implements all renderer interfaces
necessary to render the child elements.IllegalArgumentException - if renderer is not
an instance of GraphicalCompositeRenderer.Copyright © 2017. All rights reserved.