org.opensourcephysics.displayejs
Class InteractiveSphere
java.lang.Object
org.opensourcephysics.displayejs.AbstractInteractiveElement
org.opensourcephysics.displayejs.AbstractInteractiveTile
org.opensourcephysics.displayejs.InteractiveCylinder
org.opensourcephysics.displayejs.InteractiveSphere
- All Implemented Interfaces:
- Drawable, Interactive, Measurable, Body, Drawable3D, HasDataObjectInterface, InteractionSource, InteractiveElement, Measurable3D
public class InteractiveSphere
- extends InteractiveCylinder
This class implements a general 3D sphere. The user can specify the three main axes
for the sphere resultig, for instance in non-straight sphere.
The sphere can be repositioned but cannot be resized.
Method Summary |
void |
copyFrom(InteractiveElement _element)
|
int |
getMaxAngleV()
Gets the maximum angle to build the meridians of the sphere. |
int |
getMinAngleV()
Gets the minimum angle to build the meridians of the sphere. |
void |
setMaxAngleV(int angle)
Sets the maximum angle to build the meridians of the sphere. |
void |
setMinAngleV(int angle)
Sets the minimum angle to build the meridians of the sphere. |
Methods inherited from class org.opensourcephysics.displayejs.InteractiveCylinder |
findInteractive, getDirection, getMaxAngleU, getMinAngleU, isClosedBottom, isClosedLeft, isClosedRight, isClosedTop, setClosedBottom, setClosedLeft, setClosedRight, setClosedTop, setCustomAxes, setDirection, setMaxAngleU, setMinAngleU |
Methods inherited from class org.opensourcephysics.displayejs.AbstractInteractiveTile |
draw, draw, drawQuickly, GetDisplacementFactor, getObjects3D, getXMax, getXMin, getYMax, getYMin, getZMax, getZMin, setColorBelowWhenEqual, setColorOriginAndDirection, setColorRegions, setDisplacementFactor, setDrawQuickInterior, setOrigin, setTransformation, toBodyFrame, toSpaceFrame |
Methods inherited from class org.opensourcephysics.displayejs.AbstractInteractiveElement |
addListener, canBeMeasured, getControl, getDataObject, getGroup, getResolution, getSensitivity, getSet, getSetIndex, getSizeX, getSizeY, getSizeZ, getStyle, getX, getY, getZ, initializeMemberOfSet, invokeActions, isEnabled, isEnabled, isGroupEnabled, isGroupEnabled, isMeasured, isVisible, needsToProject, removeAllListeners, removeListener, setControl, setDataObject, setEnabled, setEnabled, setGroup, setGroupEnabled, setGroupEnabled, setResolution, setSensitivity, setSet, setSizeX, setSizeXY, setSizeXYZ, setSizeY, setSizeZ, setVisible, setX, setXY, setXYZ, setY, setZ, toXML |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InteractiveSphere
public InteractiveSphere()
InteractiveSphere
public InteractiveSphere(int _direction)
copyFrom
public void copyFrom(InteractiveElement _element)
- Specified by:
copyFrom
in interface InteractiveElement
- Overrides:
copyFrom
in class InteractiveCylinder
setMinAngleV
public void setMinAngleV(int angle)
- Sets the minimum angle to build the meridians of the sphere.
- Parameters:
angle
- the minimum angle
getMinAngleV
public int getMinAngleV()
- Gets the minimum angle to build the meridians of the sphere.
- Returns:
- the minimum angle
setMaxAngleV
public void setMaxAngleV(int angle)
- Sets the maximum angle to build the meridians of the sphere.
- Parameters:
angle
- the maximum angle
getMaxAngleV
public int getMaxAngleV()
- Gets the maximum angle to build the meridians of the sphere.
- Returns:
- the maximum angle