|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.batik.gvt.FillShapePainter
A shape painter that can be used to fill a shape.
| Field Summary | |
protected java.awt.Paint |
paint
The paint attribute used to fill the shape. |
protected java.awt.Shape |
shape
The Shape to be painted. |
| Constructor Summary | |
FillShapePainter(java.awt.Shape shape)
Constructs a new FillShapePainter that can be used to fill a Shape. |
|
| Method Summary | |
java.awt.Shape |
getPaintedArea()
Returns the area painted by this shape painter. |
java.awt.geom.Rectangle2D |
getPaintedBounds2D()
Returns the bounds of the area painted by this shape painter |
java.awt.Shape |
getShape()
Gets the Shape this shape painter is associated with. |
void |
paint(java.awt.Graphics2D g2d)
Paints the specified shape using the specified Graphics2D. |
void |
setPaint(java.awt.Paint newPaint)
Sets the paint used to fill a shape. |
void |
setShape(java.awt.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 java.awt.Shape shape
protected java.awt.Paint paint
| Constructor Detail |
public FillShapePainter(java.awt.Shape shape)
shape - Shape to be painted by this painter
Should not be null.| Method Detail |
public void setPaint(java.awt.Paint newPaint)
newPaint - the paint object used to fill the shapepublic void paint(java.awt.Graphics2D g2d)
paint in interface ShapePainterg2d - the Graphics2D to usepublic java.awt.Shape getPaintedArea()
getPaintedArea in interface ShapePainterpublic java.awt.geom.Rectangle2D getPaintedBounds2D()
getPaintedBounds2D in interface ShapePainterpublic void setShape(java.awt.Shape shape)
setShape in interface ShapePaintershape - new shape this painter should be associated with.
Should not be null.public java.awt.Shape getShape()
getShape in interface ShapePainter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||