org.apache.batik.bridge.svg12
Class SVGMultiImageElementBridge
public
class
SVGMultiImageElementBridge
extends SVGImageElementBridge
Bridge class for the <multiImage> element.
The 'multiImage' element is similar to the 'image' element (supports
all the same attributes and properties) except.
- It can only be used to reference raster content (this is an
implementation thing really)
- It has two addtional attributes: 'pixel-width' and
'pixel-height' which are the maximum width and height of the
image referenced by the xlink:href attribute.
- It can contain a child element 'subImage' which has only
three attributes, pixel-width, pixel-height and xlink:href.
The image displayed is the smallest image such that
pixel-width and pixel-height are greater than or equal to the
required image size for display.
Method Summary |
protected void | addInfo(Element e, Collection elems, Collection minDim, Collection maxDim, Rectangle2D bounds) |
protected void | addRefInfo(Element e, Collection elems, Collection minDim, Collection maxDim, Rectangle2D bounds) |
void | buildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node) |
GraphicsNode | createGraphicsNode(BridgeContext ctx, Element e)
Creates a graphics node using the specified BridgeContext and for the
specified element.
|
void | dispose()
Disposes this BridgeUpdateHandler and releases all resources. |
protected Dimension | getElementMaxPixel(Element e, Rectangle2D bounds) |
protected Dimension | getElementMinPixel(Element e, Rectangle2D bounds) |
protected Dimension | getElementPixelSize(Element e, String attr, Rectangle2D bounds) |
protected static Rectangle2D | getImageBounds(BridgeContext ctx, Element element)
Returns the bounds of the specified image element.
|
Bridge | getInstance()
Returns a new instance of this bridge. |
String | getLocalName()
Returns 'multiImage'. |
String | getNamespaceURI()
Returns the Batik Extension namespace URI. |
protected void | initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node)
This method is invoked during the build phase if the document
is dynamic. |
boolean | isComposite()
Returns false as shapes are not a container. |
public SVGMultiImageElementBridge()
protected void addInfo(Element e, Collection elems, Collection minDim, Collection maxDim, Rectangle2D bounds)
protected void addRefInfo(Element e, Collection elems, Collection minDim, Collection maxDim, Rectangle2D bounds)
Creates a graphics node using the specified BridgeContext and for the
specified element.
Parameters: ctx the bridge context to use e the element that describes the graphics node to build
Returns: a graphics node that represents the specified element
public void dispose()
Disposes this BridgeUpdateHandler and releases all resources.
protected Dimension getElementMaxPixel(Element e, Rectangle2D bounds)
protected Dimension getElementMinPixel(Element e, Rectangle2D bounds)
protected Dimension getElementPixelSize(Element e, String attr, Rectangle2D bounds)
protected static Rectangle2D getImageBounds(
BridgeContext ctx, Element element)
Returns the bounds of the specified image element.
Parameters: ctx the bridge context element the image element
Returns a new instance of this bridge.
public String getLocalName()
Returns 'multiImage'.
public String getNamespaceURI()
Returns the Batik Extension namespace URI.
This method is invoked during the build phase if the document
is dynamic. The responsability of this method is to ensure that
any dynamic modifications of the element this bridge is
dedicated to, happen on its associated GVT product.
public boolean isComposite()
Returns false as shapes are not a container.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.