org.opensourcephysics.displayejs
Class InteractiveCylinderSimple

java.lang.Object
  extended by org.opensourcephysics.displayejs.AbstractInteractiveElement
      extended by org.opensourcephysics.displayejs.AbstractInteractiveTile
          extended by 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.

Field Summary
 
Fields inherited from class org.opensourcephysics.displayejs.AbstractInteractiveElement
SENSIBILITY
 
Fields inherited from interface org.opensourcephysics.displayejs.InteractiveElement
TARGET_POSITION, TARGET_SIZE
 
Constructor Summary
InteractiveCylinderSimple()
           
 
Method Summary
 void copyFrom(InteractiveElement _element)
           
 int getMaxAngleU()
           
 int getMinAngleU()
           
 double getRadius()
          Get the radius of the Cylinder.
 boolean isClosedBottom()
           
 boolean isClosedLeft()
           
 boolean isClosedRight()
           
 boolean isClosedTop()
           
 void setClosedBottom(boolean _close)
           
 void setClosedLeft(boolean _close)
           
 void setClosedRight(boolean _close)
           
 void setClosedTop(boolean _close)
           
 void setMaxAngleU(int _angle)
           
 void setMinAngleU(int _angle)
           
 void setRadius(double _r)
          Set the radius of the 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
 

Constructor Detail

InteractiveCylinderSimple

public InteractiveCylinderSimple()
Method Detail

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()