org.apache.batik.bridge

Class SVGSVGElementBridge

public class SVGSVGElementBridge extends SVGGElementBridge implements SVGSVGContext

Bridge class for the <svg> element.
Nested Class Summary
static classSVGSVGElementBridge.SVGSVGElementViewport
A viewport defined an <svg> element.
Constructor Summary
SVGSVGElementBridge()
Constructs a new bridge for the <svg> element.
Method Summary
booleananimationsPaused()
Returns whether animations are currently paused.
voidbuildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node.
booleancheckEnclosure(Element element, SVGRect svgRect)
booleancheckIntersection(Element element, SVGRect svgRect)
GraphicsNodecreateGraphicsNode(BridgeContext ctx, Element e)
Creates a GraphicsNode according to the specified parameters.
voiddeselectAll()
voiddispose()
Disposes this BridgeUpdateHandler and releases all resources.
booleanfilterChildren(Element curr, Element end, Set elems, List ret)
voidforceRedraw()
protected SetgetAncestors(Element end, Element base)
floatgetCurrentTime()
Returns the current document time.
ListgetEnclosureList(SVGRect svgRect, Element end)
BridgegetInstance()
Returns a new instance of this bridge.
ListgetIntersectionList(SVGRect svgRect, Element end)
StringgetLocalName()
Returns 'svg'.
protected ElementgetNext(Element curr, Element base, Element end)
voidhandleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
Invoked when the animated value of an animatable attribute has changed.
protected GraphicsNodeinstantiateGraphicsNode()
Creates a CompositeGraphicsNode.
voidpauseAnimations()
Pauses animations in the document.
voidsetCurrentTime(float t)
Sets the current document time.
intsuspendRedraw(int max_wait_milliseconds)
voidunpauseAnimations()
Unpauses animations in the document.
booleanunsuspendRedraw(int suspend_handle_id)
voidunsuspendRedrawAll()

Constructor Detail

SVGSVGElementBridge

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

Method Detail

animationsPaused

public boolean animationsPaused()
Returns whether animations are currently paused.

buildGraphicsNode

public void buildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node)
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 node the graphics node to build

checkEnclosure

public boolean checkEnclosure(Element element, SVGRect svgRect)

checkIntersection

public boolean checkIntersection(Element element, SVGRect svgRect)

createGraphicsNode

public GraphicsNode createGraphicsNode(BridgeContext ctx, Element e)
Creates a GraphicsNode according to the specified parameters.

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

deselectAll

public void deselectAll()

dispose

public void dispose()
Disposes this BridgeUpdateHandler and releases all resources.

filterChildren

public boolean filterChildren(Element curr, Element end, Set elems, List ret)

forceRedraw

public void forceRedraw()

getAncestors

protected Set getAncestors(Element end, Element base)

getCurrentTime

public float getCurrentTime()
Returns the current document time.

getEnclosureList

public List getEnclosureList(SVGRect svgRect, Element end)

getInstance

public Bridge getInstance()
Returns a new instance of this bridge.

getIntersectionList

public List getIntersectionList(SVGRect svgRect, Element end)

getLocalName

public String getLocalName()
Returns 'svg'.

getNext

protected Element getNext(Element curr, Element base, Element end)

handleAnimatedAttributeChanged

public void handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
Invoked when the animated value of an animatable attribute has changed.

instantiateGraphicsNode

protected GraphicsNode instantiateGraphicsNode()
Creates a CompositeGraphicsNode.

pauseAnimations

public void pauseAnimations()
Pauses animations in the document.

setCurrentTime

public void setCurrentTime(float t)
Sets the current document time.

suspendRedraw

public int suspendRedraw(int max_wait_milliseconds)

unpauseAnimations

public void unpauseAnimations()
Unpauses animations in the document.

unsuspendRedraw

public boolean unsuspendRedraw(int suspend_handle_id)

unsuspendRedrawAll

public void unsuspendRedrawAll()
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.