org.apache.batik.refimpl.gvt
Class ConcreteStrokeShapePainter
java.lang.Object
|
+--org.apache.batik.refimpl.gvt.ConcreteStrokeShapePainter
- All Implemented Interfaces:
- ShapePainter, StrokeShapePainter
- public class ConcreteStrokeShapePainter
- extends java.lang.Object
- implements StrokeShapePainter
The default implementation of the StrokeShapePainter.
Field Summary |
protected java.awt.Paint |
paint
The paint attribute used to draw the outline of the shape. |
protected java.awt.Stroke |
stroke
The stroke attribute used to draw the outline of the shape. |
Method Summary |
java.awt.Shape |
getPaintedArea(java.awt.Shape shape)
Returns the area painted by this painter for a given input shape |
void |
paint(java.awt.Shape shape,
java.awt.Graphics2D g2d,
GraphicsNodeRenderContext ctx)
Paints the specified shape using the specified Graphics2D and context. |
void |
setPaint(java.awt.Paint newPaint)
Sets the paint used to draw the outline of the shape. |
void |
setStroke(java.awt.Stroke newStroke)
Sets the stroke of this shape painter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stroke
protected java.awt.Stroke stroke
- The stroke attribute used to draw the outline of the shape.
paint
protected java.awt.Paint paint
- The paint attribute used to draw the outline of the shape.
ConcreteStrokeShapePainter
public ConcreteStrokeShapePainter()
- Constructs a new ShapePainter that can be used to draw
the outline of a Shape.
setStroke
public void setStroke(java.awt.Stroke newStroke)
- Description copied from interface:
StrokeShapePainter
- Sets the stroke of this shape painter.
- Specified by:
setStroke
in interface StrokeShapePainter
- Following copied from interface:
org.apache.batik.gvt.StrokeShapePainter
- Parameters:
newStroke
- the new stroke of this shape painter
setPaint
public void setPaint(java.awt.Paint newPaint)
- Description copied from interface:
StrokeShapePainter
- Sets the paint used to draw the outline of the shape.
- Specified by:
setPaint
in interface StrokeShapePainter
- Following copied from interface:
org.apache.batik.gvt.StrokeShapePainter
- Parameters:
newPaint
- the new paint used to draw the outline of the shape
paint
public void paint(java.awt.Shape shape,
java.awt.Graphics2D g2d,
GraphicsNodeRenderContext ctx)
- Description copied from interface:
ShapePainter
- Paints the specified shape using the specified Graphics2D and context.
- Specified by:
paint
in interface ShapePainter
- Following copied from interface:
org.apache.batik.gvt.ShapePainter
- Parameters:
shape
- the shape to paintg2d
- the Graphics2D to usectx
- the render context to use
getPaintedArea
public java.awt.Shape getPaintedArea(java.awt.Shape shape)
- Description copied from interface:
ShapePainter
- Returns the area painted by this painter for a given input shape
- Specified by:
getPaintedArea
in interface ShapePainter
- Following copied from interface:
org.apache.batik.gvt.ShapePainter
- Parameters:
shape
- the shape to paint
Copyright © 2000 Apache Software Foundation. All Rights Reserved.