org.apache.batik.bridge
Interface PaintBridge

All Superinterfaces:
Bridge
All Known Implementing Classes:
SVGRadialGradientBridge, SVGLinearGradientBridge, SVGPatternElementBridge

public interface PaintBridge
extends Bridge

Factory class for vending Paint objects used to fill or draw the outline of a Shape.


Method Summary
 java.awt.Paint createFillPaint(BridgeContext ctx, GraphicsNode paintedNode, Element paintedElement, Element paintElement)
          Creates a Paint used to fill a Shape of a ShapeNode.
 java.awt.Paint createStrokePaint(BridgeContext ctx, GraphicsNode paintedNode, Element paintedElement, Element paintElement)
          Creates a Paint used to draw the outline of a Shape of a ShapeNode.
 

Method Detail

createStrokePaint

public java.awt.Paint createStrokePaint(BridgeContext ctx,
                                        GraphicsNode paintedNode,
                                        Element paintedElement,
                                        Element paintElement)
Creates a Paint used to draw the outline of a Shape of a ShapeNode.
Parameters:
ctx - the context to use
paintedNode - the GraphicsNode for which a Paint is created
paintedElement - the Element with 'stroke' and 'stroke-opacity' attributes.
paintElement - teh Element which contains the paint's definition

createFillPaint

public java.awt.Paint createFillPaint(BridgeContext ctx,
                                      GraphicsNode paintedNode,
                                      Element paintedElement,
                                      Element paintElement)
Creates a Paint used to fill a Shape of a ShapeNode.
Parameters:
ctx - the context to use
paintedNode - the GraphicsNode for which a Paint is created
paintedElement - the Element with 'fill' and 'fill-opacity' attributes.
paintElement - teh Element which contains the paint's definition


Copyright © 2000 Apache Software Foundation. All Rights Reserved.