org.apache.batik.refimpl.gvt
Class ConcreteFillShapePainter
java.lang.Object
|
+--org.apache.batik.refimpl.gvt.ConcreteFillShapePainter
- All Implemented Interfaces:
- FillShapePainter, ShapePainter
- public class ConcreteFillShapePainter
- extends java.lang.Object
- implements FillShapePainter
The default implementation of the FillShapePainter.
Field Summary |
protected java.awt.Paint |
paint
The paint attribute used to fill 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 of this shape painter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
paint
protected java.awt.Paint paint
- The paint attribute used to fill the shape.
ConcreteFillShapePainter
public ConcreteFillShapePainter()
- Constructs a new ShapePainter that can be used to fill
a Shape.
setPaint
public void setPaint(java.awt.Paint newPaint)
- Description copied from interface:
FillShapePainter
- Sets the paint of this shape painter.
- Specified by:
setPaint
in interface FillShapePainter
- Following copied from interface:
org.apache.batik.gvt.FillShapePainter
- Parameters:
newPaint
- the new paint of this shape painter
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.