|
|||||||||
| Home >> All >> org >> apache >> batik >> [ gvt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.batik.gvt
Class FillShapePainter

java.lang.Objectorg.apache.batik.gvt.FillShapePainter
- All Implemented Interfaces:
- ShapePainter
- public class FillShapePainter
- extends java.lang.Object
- implements ShapePainter
- extends java.lang.Object
A shape painter that can be used to fill a shape.
- Version:
- $Id: FillShapePainter.java,v 1.15 2004/08/18 07:14:25 vhardy Exp $
| 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 |
getSensitiveArea()
Returns the area covered by this shape painter (even if not painted). |
java.awt.geom.Rectangle2D |
getSensitiveBounds2D()
Returns the bounds of the area covered by this shape painte (even if not painted). |
java.awt.Shape |
getShape()
Gets the Shape this shape painter is associated with. |
boolean |
inPaintedArea(java.awt.geom.Point2D pt)
Returns true if pt is in the area painted by this shape painter |
boolean |
inSensitiveArea(java.awt.geom.Point2D pt)
Returns true if pt is in the area painted by this shape painter |
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 |
shape
protected java.awt.Shape shape
- The Shape to be painted.
paint
protected java.awt.Paint paint
- The paint attribute used to fill the shape.
| Constructor Detail |
FillShapePainter
public FillShapePainter(java.awt.Shape shape)
- Constructs a new FillShapePainter that can be used to fill
a Shape.
| Method Detail |
setPaint
public void setPaint(java.awt.Paint newPaint)
- Sets the paint used to fill a shape.
paint
public void paint(java.awt.Graphics2D g2d)
- Paints the specified shape using the specified Graphics2D.
- Specified by:
paintin interfaceShapePainter
getPaintedArea
public java.awt.Shape getPaintedArea()
- Returns the area painted by this shape painter.
- Specified by:
getPaintedAreain interfaceShapePainter
getPaintedBounds2D
public java.awt.geom.Rectangle2D getPaintedBounds2D()
- Returns the bounds of the area painted by this shape painter
- Specified by:
getPaintedBounds2Din interfaceShapePainter
inPaintedArea
public boolean inPaintedArea(java.awt.geom.Point2D pt)
- Returns true if pt is in the area painted by this shape painter
- Specified by:
inPaintedAreain interfaceShapePainter
getSensitiveArea
public java.awt.Shape getSensitiveArea()
- Returns the area covered by this shape painter (even if not painted).
- Specified by:
getSensitiveAreain interfaceShapePainter
getSensitiveBounds2D
public java.awt.geom.Rectangle2D getSensitiveBounds2D()
- Returns the bounds of the area covered by this shape painte
(even if not painted).
- Specified by:
getSensitiveBounds2Din interfaceShapePainter
inSensitiveArea
public boolean inSensitiveArea(java.awt.geom.Point2D pt)
- Returns true if pt is in the area painted by this shape painter
- Specified by:
inSensitiveAreain interfaceShapePainter
setShape
public void setShape(java.awt.Shape shape)
- Sets the Shape this shape painter is associated with.
- Specified by:
setShapein interfaceShapePainter
getShape
public java.awt.Shape getShape()
- Gets the Shape this shape painter is associated with.
- Specified by:
getShapein interfaceShapePainter
|
|||||||||
| Home >> All >> org >> apache >> batik >> [ gvt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.batik.gvt.FillShapePainter