|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectview.AbstractFilledShape
view.PointDraw
public class PointDraw
Drawing shapes that should have a constant size during zooming is not
possible by adding them as normal shapes in JNormalizedCanvas.
Use this class instead.
| Field Summary | |
|---|---|
private Point2D |
center
The normalized position of this object. |
private ShapeDraw |
zero
The 0,0-centered shape to draw. |
| Constructor Summary | |
|---|---|
PointDraw(Point2D where,
Shape generic,
boolean fill)
Constructs a new PointDraw object by providing a generic shape and a normalized location for it. |
|
PointDraw(Point2D where,
ShapeDraw generic)
Constructs a new PointDraw object by providing a generic shape and a normalized location for it. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object that)
To point draws are equal if they draw at the same point and the same shape. |
Point2D |
getCenter()
Returns the normalized position where to draw the shape. |
Shape |
getShape(Graphics2D g2d)
Returns the zero-centered shape. |
int |
hashCode()
Hash code is the has code of the location. |
boolean |
isFilled()
Returns the normalized position where to draw the shape. |
String |
toString()
Returns the center plus the shape as a string. |
| Methods inherited from class view.AbstractFilledShape |
|---|
getUnique |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private ShapeDraw zero
private Point2D center
| Constructor Detail |
|---|
public PointDraw(Point2D where,
Shape generic,
boolean fill)
public PointDraw(Point2D where,
ShapeDraw generic)
| Method Detail |
|---|
public Point2D getCenter()
getCenter in interface Centerablepublic Shape getShape(Graphics2D g2d)
getShape in interface FilledShapepublic boolean isFilled()
isFilled in interface FilledShapepublic boolean equals(Object that)
equals in class AbstractFilledShapepublic int hashCode()
hashCode in class AbstractFilledShapepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||