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. |
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 paintg2d
- the Graphics2D to usectx
- 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.