lt.monarch.chart.chart3D.engine
Class Cone3D
java.lang.Object
lt.monarch.chart.chart3D.engine.Shape3D<Projector3D>
lt.monarch.chart.chart3D.engine.Cone3D
- All Implemented Interfaces:
- java.io.Serializable
public class Cone3D
extends Shape3D<Projector3D>
- See Also:
- Serialized Form
Method Summary
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 java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cone3D
public Cone3D()
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 coordinatey1 - y bottom center coordinatez1 - z bottom center coordinatex2 - x radiusy2 - height of shapez2 - 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