lt.monarch.chart.chart3D.engine
Class Cone3D

java.lang.Object
  extended by lt.monarch.chart.chart3D.engine.Shape3D<Projector3D>
      extended by lt.monarch.chart.chart3D.engine.Cone3D
All Implemented Interfaces:
java.io.Serializable

public class Cone3D
extends Shape3D<Projector3D>

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Class and Description
 
Nested classes/interfaces inherited from class lt.monarch.chart.chart3D.engine.Shape3D
Shape3D.Line, Shape3D.Polygon, Shape3D.ProjectableShape<ChartProjector extends Projector>
 
Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.chart3D.engine.Shape3D
bounds, shapeList
 
Constructor Summary
Constructor and Description
Cone3D()
           
 
Method Summary
Modifier and Type Method and Description
 int getPointsCount()
          Return point count of cone
protected  void initShape()
          Initializes the shape and adds its points to the array
 boolean isDrawBottom()
          Return true, if draw bottom of shape, otherwise - false
 void setBounds(double x1, double y1, double z1, double x2, double y2, double z2)
          Sets bounds of the cone
 void setDrawBottom(boolean drawBottom)
          Set true, if draw bottom of shape, otherwise - false
 void setPointsCount(int pointsCount)
          Set point count of cone
 
Methods inherited from class lt.monarch.chart.chart3D.engine.Shape3D
dispose, draw, finalize, getBounds, getSelectionId, projectPoint, setDrawTransformation, setSelectionID
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cone3D

public Cone3D()
Method Detail

initShape

protected void initShape()
Description copied from class: Shape3D
Initializes the shape and adds its points to the array

Specified by:
initShape in class Shape3D<Projector3D>

setBounds

public void setBounds(double x1,
                      double y1,
                      double z1,
                      double x2,
                      double y2,
                      double z2)
Sets bounds of the cone

Overrides:
setBounds in class Shape3D<Projector3D>
Parameters:
x1 - x bottom center coordinate
y1 - y bottom center coordinate
z1 - z bottom center coordinate
x2 - x radius
y2 - height of shape
z2 - y radius

getPointsCount

public int getPointsCount()
Return point count of cone

Returns:
the pointsCount

setPointsCount

public void setPointsCount(int pointsCount)
Set point count of cone

Parameters:
pointsCount - the pointsCount to set

isDrawBottom

public boolean isDrawBottom()
Return true, if draw bottom of shape, otherwise - false

Returns:
the drawBottom

setDrawBottom

public void setDrawBottom(boolean drawBottom)
Set true, if draw bottom of shape, otherwise - false

Parameters:
drawBottom - the drawBottom to set