Interface Group
- All Superinterfaces:
Data
,Element
,InteractionSource
- All Known Subinterfaces:
Set
Title: Group
Description: A Group is an element that is made of other elements
- Version:
- March 2005
- Author:
- Francisco Esquembre
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.opensourcephysics.display3d.core.Element
TARGET_POSITION, TARGET_SIZE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(Element element) Adds an Element to this Group.getElement
(int index) Gets the elements of the group at a given index.Gets the cloned list of Elements in the group.void
Removes all Elements from this Groupvoid
removeElement
(Element element) Removes an Element from this GroupMethods inherited from interface org.opensourcephysics.display.Data
getColumnNames, getData2D, getData3D, getDataList, getDatasets, getFillColors, getID, getLineColors, getName, setID
Methods inherited from interface org.opensourcephysics.display3d.core.Element
getDrawingPanel3D, 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 Details
-
addElement
Adds an Element to this Group.- Parameters:
element
- Element- See Also:
-
removeElement
Removes an Element from this Group- Parameters:
element
- Element- See Also:
-
removeAllElements
void removeAllElements()Removes all Elements from this Group- See Also:
-
getElements
Gets the cloned list of Elements in the group. (Should be synchronized.)- Returns:
- cloned list
-
getElement
Gets the elements of the group at a given index.- Returns:
- the given element (null if the index is not within allowed bounds)
-