org.opensourcephysics.display3d.core
Interface ElementCircle
- All Superinterfaces:
- Element, org.opensourcephysics.display3d.core.interaction.InteractionSource
- All Known Implementing Classes:
- ElementCircle
- public interface ElementCircle
- extends Element
Title: ElementSegment
Description: Draws a circle at its position with the given size.
The default size is zero (which draws a point).
Because a circle is essentialy a 2D object, it doesn't behave completely
as a 3D object. Thus, its center will be affected by transformations
of the element, BUT ITS SIZE WON'T. Moreover, in 3D visualizations, the
maximum of sizeX and sizeY is used for its horizontal size. In all other
views, the corresponding size is used.
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 |
setRotationAngle
public void setRotationAngle(double angle)
- Sets the rotation angle for the circle. Default is 0.
- Parameters:
angle
- the rotation angle
getRotationAngle
public double getRotationAngle()
- Gets the rotation angle for the circle