|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart2D.engine.Shape2D.Line
protected class Shape2D.Line extends java.lang.Object implements Shape2D.ProjectableShape
Class for storing line coordinates
| Modifier and Type | Field and Description |
|---|---|
protected Point2D |
pt1
|
protected Point2D |
pt2
|
| Constructor and Description |
|---|
Shape2D.Line(double x1,
double y1,
double x2,
double y2)
|
| Modifier and Type | Method and Description |
|---|---|
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 |
setLine(double x1,
double y1,
double x2,
double y2)
|
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 Point2D pt1
protected Point2D pt2
| Constructor Detail |
|---|
public Shape2D.Line(double x1,
double y1,
double x2,
double y2)
| Method Detail |
|---|
public void setLine(double x1,
double y1,
double x2,
double y2)
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 | ||||||||