org.apache.batik.bridge.svg12

Class SVGSolidColorElementBridge

public class SVGSolidColorElementBridge extends AnimatableGenericSVGBridge implements PaintBridge

Bridge class for a regular polygon element.
Constructor Summary
SVGSolidColorElementBridge()
Constructs a new bridge for the <rect> element.
Method Summary
PaintcreatePaint(BridgeContext ctx, Element paintElement, Element paintedElement, GraphicsNode paintedNode, float opacity)
Creates a Paint according to the specified parameters.
protected static ColorextractColor(Element paintElement, float opacity, BridgeContext ctx)
protected static floatextractOpacity(Element paintElement, float opacity, BridgeContext ctx)
StringgetLocalName()
Returns 'rect'.
StringgetNamespaceURI()
Returns the SVG namespace URI.

Constructor Detail

SVGSolidColorElementBridge

public SVGSolidColorElementBridge()
Constructs a new bridge for the <rect> element.

Method Detail

createPaint

public Paint createPaint(BridgeContext ctx, Element paintElement, Element paintedElement, GraphicsNode paintedNode, float opacity)
Creates a Paint according to the specified parameters.

Parameters: ctx the bridge context to use paintElement the element that defines a Paint paintedElement the element referencing the paint paintedNode the graphics node on which the Paint will be applied opacity the opacity of the Paint to create

extractColor

protected static Color extractColor(Element paintElement, float opacity, BridgeContext ctx)

extractOpacity

protected static float extractOpacity(Element paintElement, float opacity, BridgeContext ctx)

getLocalName

public String getLocalName()
Returns 'rect'.

getNamespaceURI

public String getNamespaceURI()
Returns the SVG namespace URI.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.