|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.gvt.StrokeShapePainter
public class StrokeShapePainter
A shape painter that can be used to draw the outline of a shape.
Field Summary | |
---|---|
protected java.awt.Paint |
paint
The paint attribute used to draw the outline of the shape. |
protected java.awt.Shape |
shape
Shape painted by this painter. |
protected java.awt.Stroke |
stroke
The stroke attribute used to draw the outline of the shape. |
protected java.awt.Shape |
strokedShape
Stroked version of the shape. |
Constructor Summary | |
---|---|
StrokeShapePainter(java.awt.Shape shape)
Constructs a new ShapePainter that can be used to draw the outline of a Shape. |
Method Summary | |
---|---|
java.awt.Paint |
getPaint()
Gets the paint used to draw the outline of the shape. |
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 painter (even if not painted). |
java.awt.Shape |
getShape()
Gets the Shape this shape painter is associated with. |
java.awt.Stroke |
getStroke()
Gets the stroke used to draw the outline of the shape. |
boolean |
inPaintedArea(java.awt.geom.Point2D pt)
Returns the bounds of the area covered by this shape painter |
boolean |
inSensitiveArea(java.awt.geom.Point2D pt)
Returns the bounds of the area covered by this shape painter (even if not painted). |
void |
paint(java.awt.Graphics2D g2d)
Paints the outline of 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. |
void |
setStroke(java.awt.Stroke newStroke)
Sets the stroke used to draw the outline of a shape. |
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.Shape strokedShape
protected java.awt.Stroke stroke
protected java.awt.Paint paint
Constructor Detail |
---|
public StrokeShapePainter(java.awt.Shape shape)
shape
- shape to be painted by this painter.
Should not be null.Method Detail |
---|
public void setStroke(java.awt.Stroke newStroke)
newStroke
- the stroke object used to draw the outline of the shapepublic java.awt.Stroke getStroke()
public void setPaint(java.awt.Paint newPaint)
newPaint
- the paint object used to draw the shapepublic java.awt.Paint getPaint()
public void paint(java.awt.Graphics2D g2d)
paint
in interface ShapePainter
g2d
- the Graphics2D to usepublic java.awt.Shape getPaintedArea()
getPaintedArea
in interface ShapePainter
public java.awt.geom.Rectangle2D getPaintedBounds2D()
getPaintedBounds2D
in interface ShapePainter
public boolean inPaintedArea(java.awt.geom.Point2D pt)
inPaintedArea
in interface ShapePainter
public java.awt.Shape getSensitiveArea()
getSensitiveArea
in interface ShapePainter
public java.awt.geom.Rectangle2D getSensitiveBounds2D()
getSensitiveBounds2D
in interface ShapePainter
public boolean inSensitiveArea(java.awt.geom.Point2D pt)
inSensitiveArea
in interface ShapePainter
public void setShape(java.awt.Shape shape)
setShape
in interface ShapePainter
shape
- 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |