|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart3D.engine.Shape3D<ChartProjector>
public abstract class Shape3D<ChartProjector extends Projector> extends java.lang.Object implements java.io.Serializable
Shape interface for drawing shapes in bar series.
| Modifier and Type | Class and Description |
|---|---|
protected class |
Shape3D.Line
Class for storing line coordinates |
protected class |
Shape3D.Polygon
Class for storing polygon coordinates |
protected static interface |
Shape3D.ProjectableShape<ChartProjector extends Projector>
|
| Modifier and Type | Field and Description |
|---|---|
protected Rectangle3D |
bounds
Bounds of the shape |
protected java.util.ArrayList<Shape3D.ProjectableShape<Projector3D>> |
shapeList
List of shapes to draw |
| Constructor and Description |
|---|
Shape3D()
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Clears the shape object |
java.util.List<java.awt.Shape> |
draw(int index,
AbstractGraphics g,
ChartProjector projector,
PlaneMapper mapper,
AbstractPaintTags tag,
Style style,
PaintMode paintMode)
Draws the shape into the graphic context |
protected void |
finalize()
|
Rectangle3D |
getBounds()
Gets bounds of the shape |
int |
getSelectionId()
Gets associated chart obejct id |
protected abstract void |
initShape()
Initializes the shape and adds its points to the array |
protected Point3D |
projectPoint(Point3D point,
Projector3D projector)
Projects point to the real coordinates |
void |
setBounds(double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
Sets bounds of the shape |
void |
setDrawTransformation(Transformation3D transformation,
double anchorX,
double anchorY,
double anchorZ)
Sets a drawing transformation. |
void |
setSelectionID(int id)
Sets associated chart object id |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList<Shape3D.ProjectableShape<Projector3D>> shapeList
protected Rectangle3D bounds
| Constructor Detail |
|---|
public Shape3D()
| Method Detail |
|---|
public void setBounds(double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
x1 - x coordinatey1 - y coordinatez1 - z coordinatex2 - opposite corner x coordinatey2 - opposite corner y coordinatez2 - opposite corner z coordinate
public java.util.List<java.awt.Shape> draw(int index,
AbstractGraphics g,
ChartProjector projector,
PlaneMapper mapper,
AbstractPaintTags tag,
Style style,
PaintMode paintMode)
index - index of the bar in the seriesg - graphic contextprojector - projectormapper - mapperstyle - bar stylepaintMode - painting modepublic Rectangle3D getBounds()
protected Point3D projectPoint(Point3D point,
Projector3D projector)
point - point to projectprojector - projector
public void setDrawTransformation(Transformation3D transformation,
double anchorX,
double anchorY,
double anchorZ)
transformation - transformation objectanchorX - the x coordinate of transformation pivotanchorY - the y coordinate of transformation pivotanchorZ - the z coordinate of transformation pivotprotected abstract void initShape()
public void dispose()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void setSelectionID(int id)
if - chart object idpublic int getSelectionId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||