lt.monarch.chart.chart3D.engine
Class Pole3D

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

public class Pole3D
extends Shape3D<Projector3D>

Pole shape approximated by n-angles polygon.

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
Pole3D()
          Pole3d Constructor.
Pole3D(int pointsCount)
          Pole3d Constructor.
 
Method Summary
Modifier and Type Method and Description
 int getPointsCount()
          Return point count of pole
protected  void initShape()
          Initializes the shape and adds its points to the array
 void setBounds(double x1, double y1, double z1, double x2, double y2, double z2)
          Sets bounds of the pole
 void setPointsCount(int pointsCount)
          Set point count of pole
 
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

Pole3D

public Pole3D()
Pole3d Constructor.


Pole3D

public Pole3D(int pointsCount)
Pole3d Constructor.

Parameters:
pointsCount - the amount of points will be used for approximating pole as n-angles polygon.
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 pole

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 pole

Returns:
the pointsCount

setPointsCount

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

Parameters:
pointsCount - the pointsCount to set