|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart2D.engine.Shape2D.Polygon
protected class Shape2D.Polygon extends java.lang.Object implements Shape2D.ProjectableShape
Class for storing polygon coordinates
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<Point2D> |
list
|
| Constructor and Description |
|---|
Shape2D.Polygon()
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(Point2D point)
|
java.awt.Shape |
getShape()
Returns the swing Shape |
java.awt.Shape |
getShapeRef()
Returns the swing Shape reference |
void |
project(Projector projector)
Projects all the points of the shape |
void |
transform(Transformation tf,
double anchorX,
double anchorY)
Transforms all the points of the shape |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList<Point2D> list
| Constructor Detail |
|---|
public Shape2D.Polygon()
| Method Detail |
|---|
public void addPoint(Point2D point)
public void project(Projector projector)
Shape2D.ProjectableShape
project in interface Shape2D.ProjectableShapeprojector - projector
public void transform(Transformation tf,
double anchorX,
double anchorY)
Shape2D.ProjectableShape
transform in interface Shape2D.ProjectableShapetf - transformation matrixanchorX - x anchor point for transformationanchorY - y anchor point for transformationpublic java.awt.Shape getShape()
Shape2D.ProjectableShape
getShape in interface Shape2D.ProjectableShapepublic java.awt.Shape getShapeRef()
Shape2D.ProjectableShape
getShapeRef in interface Shape2D.ProjectableShape
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||