Class ElementGroup
java.lang.Object
org.openscience.cdk.renderer.elements.ElementGroup
- All Implemented Interfaces:
Iterable<IRenderingElement>
,IRenderingElement
A group of rendering elements, of any type.
- Source code:
- main
- Belongs to CDK module:
- renderbasic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Converts thisTextElement
into widget specific objects.void
add
(IRenderingElement element) Add a new element to the group.iterator()
void
visitChildren
(IRenderingVisitor visitor) Visit the members of the group.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ElementGroup
public ElementGroup()Create an empty element group.
-
-
Method Details
-
iterator
- Specified by:
iterator
in interfaceIterable<IRenderingElement>
-
add
Add a new element to the group.- Parameters:
element
- the element to add to the group
-
visitChildren
Visit the members of the group.- Parameters:
visitor
- the class that will be visiting each element
-
accept
Converts thisTextElement
into widget specific objects.- Specified by:
accept
in interfaceIRenderingElement
- Parameters:
v
- Toolkit specific widget factory.
-