org.opensourcephysics.displayejs
Class InteractiveCylinderSimple
java.lang.Object
org.opensourcephysics.displayejs.AbstractInteractiveElement
org.opensourcephysics.displayejs.AbstractInteractiveTile
org.opensourcephysics.displayejs.InteractiveCylinderSimple
- All Implemented Interfaces:
- Drawable, Interactive, Measurable, Body, Drawable3D, HasDataObjectInterface, InteractionSource, InteractiveElement, Measurable3D
public class InteractiveCylinderSimple
- extends AbstractInteractiveTile
This class implements a straight 3D Cylinder.
The Cylinder can be repositioned and resized along its axis.
(The size of the Cylinder is actually its vector axis.)
To be honest, I find InteractiveCylinder more useful.
- See Also:
for a more general 3D Cylinder.
Methods inherited from class org.opensourcephysics.displayejs.AbstractInteractiveTile |
draw, draw, drawQuickly, findInteractive, 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 |
InteractiveCylinderSimple
public InteractiveCylinderSimple()
copyFrom
public void copyFrom(InteractiveElement _element)
- Specified by:
copyFrom
in interface InteractiveElement
- Overrides:
copyFrom
in class AbstractInteractiveTile
setRadius
public void setRadius(double _r)
- Set the radius of the Cylinder.
getRadius
public double getRadius()
- Get the radius of the Cylinder.
setMinAngleU
public void setMinAngleU(int _angle)
getMinAngleU
public int getMinAngleU()
setMaxAngleU
public void setMaxAngleU(int _angle)
getMaxAngleU
public int getMaxAngleU()
setClosedBottom
public void setClosedBottom(boolean _close)
isClosedBottom
public boolean isClosedBottom()
setClosedTop
public void setClosedTop(boolean _close)
isClosedTop
public boolean isClosedTop()
setClosedLeft
public void setClosedLeft(boolean _close)
isClosedLeft
public boolean isClosedLeft()
setClosedRight
public void setClosedRight(boolean _close)
isClosedRight
public boolean isClosedRight()