org.opensourcephysics.display3d.core
Interface ElementCylinder

All Superinterfaces:
Element, org.opensourcephysics.display3d.core.interaction.InteractionSource
All Known Implementing Classes:
ElementCylinder

public interface ElementCylinder
extends Element

Title: ElementCylinder

Description: A 3D Cylinder.


Nested Class Summary
static class ElementCylinder.Loader
           
 
Field Summary
 
Fields inherited from interface org.opensourcephysics.display3d.core.Element
TARGET_POSITION, TARGET_SIZE
 
Method Summary
 int getMaximumAngle()
          Gets the maximum angle used to build the top and faces sides of the cylinder.
 int getMinimumAngle()
          Gets the minimum angle used to build the top and bottom faces of the cylinder.
 boolean isClosedBottom()
          Whether the element is closed at its bottom.
 boolean isClosedLeft()
          Whether the element is closed at its left side.
 boolean isClosedRight()
          Whether the element is closed at its right side.
 boolean isClosedTop()
          Whether the element is closed at its top.
 void setClosedBottom(boolean close)
          Whether the element should be closed at its bottom.
 void setClosedLeft(boolean close)
          Whether an incomplete element should be closed at its left side.
 void setClosedRight(boolean close)
          Whether an incomplete element should be closed at its right side.
 void setClosedTop(boolean close)
          Whether the element should be closed at its top.
 void setMaximumAngle(int angle)
          Sets the maximum angle to build the top and bottom faces of the cylinder.
 void setMinimumAngle(int angle)
          Sets the minimum angle to build the top and bottom faces of the cylinder.
 
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
 

Method Detail

setMinimumAngle

public void setMinimumAngle(int angle)
Sets the minimum angle to build the top and bottom faces of the cylinder. Default is 0.

Parameters:
angle - the minimum angle (in degrees)

getMinimumAngle

public int getMinimumAngle()
Gets the minimum angle used to build the top and bottom faces of the cylinder.

Returns:
the minimum angle (in degrees)

setMaximumAngle

public void setMaximumAngle(int angle)
Sets the maximum angle to build the top and bottom faces of the cylinder. Default is 360.

Parameters:
angle - the maximum angle (in degrees)

getMaximumAngle

public int getMaximumAngle()
Gets the maximum angle used to build the top and faces sides of the cylinder.

Returns:
the maximum angle (in degrees)

setClosedBottom

public void setClosedBottom(boolean close)
Whether the element should be closed at its bottom.


isClosedBottom

public boolean isClosedBottom()
Whether the element is closed at its bottom.

Returns:
the value

setClosedTop

public void setClosedTop(boolean close)
Whether the element should be closed at its top.


isClosedTop

public boolean isClosedTop()
Whether the element is closed at its top.

Returns:
the value

setClosedLeft

public void setClosedLeft(boolean close)
Whether an incomplete element should be closed at its left side.


isClosedLeft

public boolean isClosedLeft()
Whether the element is closed at its left side.

Returns:
the value

setClosedRight

public void setClosedRight(boolean close)
Whether an incomplete element should be closed at its right side.


isClosedRight

public boolean isClosedRight()
Whether the element is closed at its right side.

Returns:
the value