org.apache.fop.svg

Class PDFAElementBridge


public class PDFAElementBridge
extends AbstractGraphicsNodeBridge

Bridge class for the <a> element.
Author:
Keiron Liddle

Constructor Summary

PDFAElementBridge()
Constructs a new bridge for the <a> element.

Method Summary

GraphicsNode
createGraphicsNode(BridgeContext ctx, Element e)
Builds using the specified BridgeContext and element, the specified graphics node.
AffineTransform
getCurrentTransform()
String
getLocalName()
Returns 'a'.
protected GraphicsNode
instantiateGraphicsNode()
Creates a CompositeGraphicsNode.
boolean
isComposite()
Returns true as the <a> element is a container.
void
setCurrentTransform(AffineTransform tf)
Set the current transform of this element.

Constructor Details

PDFAElementBridge

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

Method Details

createGraphicsNode

public GraphicsNode createGraphicsNode(BridgeContext ctx,
                                       Element e)
Builds using the specified BridgeContext and element, the specified graphics node.
Parameters:
ctx - the bridge context to use
e - the element that describes the graphics node to build
Returns:
node the new graphics node

getCurrentTransform

public AffineTransform getCurrentTransform()
Returns:
the transformation matrix for links

getLocalName

public String getLocalName()
Returns 'a'.
Returns:
the name of this node

instantiateGraphicsNode

protected GraphicsNode instantiateGraphicsNode()
Creates a CompositeGraphicsNode.
Returns:
a new PDFANode

isComposite

public boolean isComposite()
Returns true as the <a> element is a container.
Returns:
true if the a element is a container

setCurrentTransform

public void setCurrentTransform(AffineTransform tf)
Set the current transform of this element.
Parameters:
tf - the transform

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.