org.opensourcephysics.display3d.simple3d
Class Group
java.lang.Object
org.opensourcephysics.display3d.simple3d.Element
org.opensourcephysics.display3d.simple3d.Group
- All Implemented Interfaces:
- Element, Group, org.opensourcephysics.display3d.core.interaction.InteractionSource
- public class Group
- extends Element
- implements Group
Title: Group
Description: A Group is an element that is made of other elements.
The group's position, size, visibility and transformation do affect the
elements in the group. The group's style doesn't, though.
- See Also:
Style
Constructor Summary |
Group()
|
Methods inherited from class org.opensourcephysics.display3d.simple3d.Element |
addInteractionListener, getHotSpotBodyCoordinates, getInteractionTarget, getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isReallyVisible, isVisible, loadUnmutableObjects, removeInteractionListener, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
Group
public Group()
addElement
public void addElement(Element element)
- Description copied from interface:
Group
- Adds an Element to this Group.
- Specified by:
addElement
in interface Group
- Parameters:
element
- Element- See Also:
Element
addElements
public void addElements(java.util.Collection elements)
removeElement
public void removeElement(Element element)
- Description copied from interface:
Group
- Removes an Element from this Group
- Specified by:
removeElement
in interface Group
- Parameters:
element
- Element- See Also:
Element
removeAllElements
public void removeAllElements()
- Description copied from interface:
Group
- Removes all Elements from this Group
- Specified by:
removeAllElements
in interface Group
- See Also:
Element
getElements
public java.util.ArrayList getElements()
- Description copied from interface:
Group
- Gets the cloned list of Elements in the group.
(Should be synchronized.)
- Specified by:
getElements
in interface Group
- Returns:
- cloned list
getExtrema
public void getExtrema(double[] min,
double[] max)
- Parameters:
min
- double[] A previously allocated double[3] array that will hold
the minimum pointmax
- double[] A previously allocated double[3] array that will hold
the maximum point
getTargetHit
public InteractionTarget getTargetHit(int x,
int y)
- Description copied from class:
Element
- Gets the target that is under the (x,y) position of the screen
- Overrides:
getTargetHit
in class Element
- Parameters:
x
- inty
- int
- Returns:
- InteractionTarget
getLoader
public static XML.ObjectLoader getLoader()