org.opensourcephysics.display3d.core
Interface Group

All Superinterfaces:
Element, org.opensourcephysics.display3d.core.interaction.InteractionSource
All Known Implementing Classes:
Group

public interface Group
extends Element

Title: Group

Description: A Group is an element that is made of other elements

See Also:
Element

Nested Class Summary
static class Group.Loader
           
 
Field Summary
 
Fields inherited from interface org.opensourcephysics.display3d.core.Element
TARGET_POSITION, TARGET_SIZE
 
Method Summary
 void addElement(Element element)
          Adds an Element to this Group.
 java.util.ArrayList getElements()
          Gets the cloned list of Elements in the group.
 void removeAllElements()
          Removes all Elements from this Group
 void removeElement(Element element)
          Removes an Element from this Group
 
Methods inherited from interface org.opensourcephysics.display3d.core.Element
getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isVisible, loadUnmutableObjects, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrame
 
Methods inherited from interface org.opensourcephysics.display3d.core.interaction.InteractionSource
addInteractionListener, getInteractionTarget, removeInteractionListener
 

Method Detail

addElement

public void addElement(Element element)
Adds an Element to this Group.

Parameters:
element - Element
See Also:
Element

removeElement

public void removeElement(Element element)
Removes an Element from this Group

Parameters:
element - Element
See Also:
Element

removeAllElements

public void removeAllElements()
Removes all Elements from this Group

See Also:
Element

getElements

public java.util.ArrayList getElements()
Gets the cloned list of Elements in the group. (Should be synchronized.)

Returns:
cloned list