|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectview.AbstractFilledShape
view.ShapeDraw
public class ShapeDraw
Drawing shapes that are either filled or outlined, but otherwise are plain shapes.
| Field Summary | |
|---|---|
private boolean |
fill
True if this shape should be filled on drawing. |
private Shape |
zero
The 0,0-centered shape to draw. |
| Constructor Summary | |
|---|---|
ShapeDraw(Object key,
Shape generic,
boolean where)
Constructs a new PointDraw object by providing a generic shape and a normalized location for it. |
|
ShapeDraw(Shape generic)
Constructs a new PointDraw object by providing a generic shape and a normalized location for it. |
|
ShapeDraw(Shape generic,
boolean where)
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()
String version. |
| 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 Shape zero
private boolean fill
| Constructor Detail |
|---|
public ShapeDraw(Shape generic)
public ShapeDraw(Shape generic,
boolean where)
public ShapeDraw(Object key,
Shape generic,
boolean where)
| Method Detail |
|---|
public boolean isFilled()
isFilled in interface FilledShapepublic Shape getShape(Graphics2D g2d)
getShape in interface FilledShapepublic Point2D getCenter()
getCenter in interface Centerablepublic String toString()
toString in class Objectpublic boolean equals(Object that)
equals in class AbstractFilledShapepublic int hashCode()
hashCode in class AbstractFilledShape
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||