org.apache.batik.gvt
Interface ShapePainter

All Known Implementing Classes:
FillShapePainter, CompositeShapePainter, MarkerShapePainter, StrokeShapePainter

public interface ShapePainter

Renders the shape of a ShapeNode.


Method Summary
 java.awt.Shape getPaintedArea(GraphicsNodeRenderContext rc)
          Returns the area painted by this painter
 java.awt.Shape getShape()
          Gets the Shape this painter is associated with.
 void paint(java.awt.Graphics2D g2d, GraphicsNodeRenderContext ctx)
          Paints the specified shape using the specified Graphics2D and context.
 void setShape(java.awt.Shape shape)
          Sets the Shape this painter is associated with.
 

Method Detail

paint

public void paint(java.awt.Graphics2D g2d,
                  GraphicsNodeRenderContext ctx)
Paints the specified shape using the specified Graphics2D and context.
Parameters:
g2d - the Graphics2D to use
ctx - the render context to use

getPaintedArea

public java.awt.Shape getPaintedArea(GraphicsNodeRenderContext rc)
Returns the area painted by this painter

setShape

public void setShape(java.awt.Shape shape)
Sets the Shape this painter is associated with.
Parameters:
shape - new shape this painter should be associated with. should not be null.

getShape

public java.awt.Shape getShape()
Gets the Shape this painter is associated with.
Returns:
shape associated with this Painter.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.