org.apache.batik.bridge.svg12

Class SVG12TextElementBridge

public class SVG12TextElementBridge extends SVGTextElementBridge implements SVG12BridgeUpdateHandler

Bridge class for SVG 'text' elements with support for text content that has been specified with XBL.
Nested Class Summary
protected classSVG12TextElementBridge.DOMChildNodeRemovedEventListener
The DOM EventListener invoked when a node is removed.
protected classSVG12TextElementBridge.DOMSubtreeModifiedEventListener
The DOM EventListener invoked when the subtree is modified.
Method Summary
protected voidaddTextEventListeners(BridgeContext ctx, NodeEventTarget e)
Adds the DOM listeners for this text bridge.
protected NodegetFirstChild(Node n)
Returns the first child node of the given node that should be processed by the text bridge.
BridgegetInstance()
Returns a new instance of this bridge.
protected NodegetNextSibling(Node n)
Returns the next sibling node of the given node that should be processed by the text bridge.
protected NodegetParentNode(Node n)
Returns the parent node of the given node that should be processed by the text bridge.
voidhandleBindingEvent(Element bindableElement, Element shadowTree)
Invoked when a bindable element's binding has changed.
voidhandleContentSelectionChangedEvent(ContentSelectionChangedEvent csce)
Invoked when the xblChildNodes property has changed because a descendant xbl:content element has updated its selected nodes.
voidhandleDOMCharacterDataModified(MutationEvent evt)
Invoked when an MutationEvent of type 'DOMCharacterDataModified' is fired.
protected voidremoveTextEventListeners(BridgeContext ctx, NodeEventTarget e)
Removes the DOM listeners for this text bridge.

Method Detail

addTextEventListeners

protected void addTextEventListeners(BridgeContext ctx, NodeEventTarget e)
Adds the DOM listeners for this text bridge.

getFirstChild

protected Node getFirstChild(Node n)
Returns the first child node of the given node that should be processed by the text bridge.

getInstance

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

getNextSibling

protected Node getNextSibling(Node n)
Returns the next sibling node of the given node that should be processed by the text bridge.

getParentNode

protected Node getParentNode(Node n)
Returns the parent node of the given node that should be processed by the text bridge.

handleBindingEvent

public void handleBindingEvent(Element bindableElement, Element shadowTree)
Invoked when a bindable element's binding has changed.

handleContentSelectionChangedEvent

public void handleContentSelectionChangedEvent(ContentSelectionChangedEvent csce)
Invoked when the xblChildNodes property has changed because a descendant xbl:content element has updated its selected nodes.

handleDOMCharacterDataModified

public void handleDOMCharacterDataModified(MutationEvent evt)
Invoked when an MutationEvent of type 'DOMCharacterDataModified' is fired.

removeTextEventListeners

protected void removeTextEventListeners(BridgeContext ctx, NodeEventTarget e)
Removes the DOM listeners for this text bridge.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.