|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.gvt.FillShapePainter
public class FillShapePainter
A shape painter that can be used to fill a shape.
| Field Summary | |
|---|---|
protected Paint |
paint
The paint attribute used to fill the shape. |
protected Shape |
shape
The Shape to be painted. |
| Constructor Summary | |
|---|---|
FillShapePainter(Shape shape)
Constructs a new FillShapePainter that can be used to fill
a Shape. |
|
| Method Summary | |
|---|---|
Paint |
getPaint()
Gets the paint used to draw the outline of the shape. |
Shape |
getPaintedArea()
Returns the area painted by this shape painter. |
Rectangle2D |
getPaintedBounds2D()
Returns the bounds of the area painted by this shape painter |
Shape |
getSensitiveArea()
Returns the area covered by this shape painter (even if not painted). |
Rectangle2D |
getSensitiveBounds2D()
Returns the bounds of the area covered by this shape painte (even if not painted). |
Shape |
getShape()
Gets the Shape this shape painter is associated with. |
boolean |
inPaintedArea(Point2D pt)
Returns true if pt is in the area painted by this shape painter |
boolean |
inSensitiveArea(Point2D pt)
Returns true if pt is in the area painted by this shape painter |
void |
paint(Graphics2D g2d)
Paints the specified shape using the specified Graphics2D. |
void |
setPaint(Paint newPaint)
Sets the paint used to fill a shape. |
void |
setShape(Shape shape)
Sets the Shape this shape painter is associated with. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Shape shape
protected Paint paint
| Constructor Detail |
|---|
public FillShapePainter(Shape shape)
FillShapePainter that can be used to fill
a Shape.
shape - Shape to be painted by this painter
Should not be null.| Method Detail |
|---|
public void setPaint(Paint newPaint)
newPaint - the paint object used to fill the shapepublic Paint getPaint()
public void paint(Graphics2D g2d)
paint in interface ShapePainterg2d - the Graphics2D to usepublic Shape getPaintedArea()
getPaintedArea in interface ShapePainterpublic Rectangle2D getPaintedBounds2D()
getPaintedBounds2D in interface ShapePainterpublic boolean inPaintedArea(Point2D pt)
inPaintedArea in interface ShapePainterpublic Shape getSensitiveArea()
getSensitiveArea in interface ShapePainterpublic Rectangle2D getSensitiveBounds2D()
getSensitiveBounds2D in interface ShapePainterpublic boolean inSensitiveArea(Point2D pt)
inSensitiveArea in interface ShapePainterpublic void setShape(Shape shape)
setShape in interface ShapePaintershape - new shape this painter should be associated with.
Should not be null.public Shape getShape()
getShape in interface ShapePainter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||