org.apache.batik.gvt
Interface ShapePainter

All Known Subinterfaces:
CompositeShapePainter, FillShapePainter, StrokeShapePainter

public interface ShapePainter

Renders the shape of a ShapeNode.


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.
 

Method Detail

paint

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

getPaintedArea

public java.awt.Shape getPaintedArea(java.awt.Shape shape)
Returns the area painted by this painter for a given input shape
Parameters:
shape - the shape to paint


Copyright © 2000 Apache Software Foundation. All Rights Reserved.