|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.bridge.BridgeContext
org.apache.batik.bridge.svg12.SVG12BridgeContext
public class SVG12BridgeContext
Bridge context for SVG 1.2 documents. This is primarily for dispatching XBL events to bridges and for handling resource documents.
Nested Class Summary | |
---|---|
protected class |
SVG12BridgeContext.EventListenerWrapper
Wrapper for DOM event listeners so that they will see only original events (i.e., not retargetted). |
protected static class |
SVG12BridgeContext.ImplementationEventListenerMememto
A class used to store an implementation EventListener added to the DOM. |
protected class |
SVG12BridgeContext.XBLBindingListener
The BindingListener. |
protected class |
SVG12BridgeContext.XBLContentListener
The ContentSelectionChangedListener. |
Field Summary | |
---|---|
protected SVG12BridgeContext.XBLBindingListener |
bindingListener
The BindingListener for XBL binding events. |
protected SVG12BridgeContext.XBLContentListener |
contentListener
The ContentSelectionChangedListener for xbl:content element events. |
protected boolean |
mouseCaptureAutoRelease
Whether the mouse capture will be released on mouse up. |
protected boolean |
mouseCaptureSendAll
Whether the mouse capture event target will receive events that do not intersect with its geometry. |
protected EventTarget |
mouseCaptureTarget
The EventTarget that has the mouse capture. |
Fields inherited from interface org.apache.batik.bridge.ErrorConstants |
---|
ERR_ATTRIBUTE_MISSING, ERR_ATTRIBUTE_VALUE_MALFORMED, ERR_CSS_LENGTH_NEGATIVE, ERR_CSS_URI_BAD_TARGET, ERR_LENGTH_NEGATIVE, ERR_URI_BAD_TARGET, ERR_URI_IMAGE_BROKEN, ERR_URI_IMAGE_INVALID, ERR_URI_IO, ERR_URI_MALFORMED, ERR_URI_REFERENCE_A_DOCUMENT, ERR_URI_UNSECURE, ERR_XLINK_HREF_CIRCULAR_DEPENDENCIES, URI_IMAGE_ERROR |
Constructor Summary | |
---|---|
SVG12BridgeContext(UserAgent userAgent)
Constructs a new bridge context. |
|
SVG12BridgeContext(UserAgent userAgent,
DocumentLoader loader)
Constructs a new bridge context. |
|
SVG12BridgeContext(UserAgent userAgent,
InterpreterPool interpreterPool,
DocumentLoader documentLoader)
Constructs a new bridge context. |
Method Summary | |
---|---|
void |
addBindingListener()
Adds a BindingListener to the XBLManager for the document, so that XBL binding events can be passed on to the BridgeUpdateHandlers. |
void |
addDOMListeners()
Adds EventListeners to the DOM and CSSEngineListener to the CSSEngine to handle any modifications on the DOM tree or style properties and update the GVT tree in response. |
void |
addGVTListener(org.w3c.dom.Document doc)
Adds the GVT listener for AWT event support. |
void |
addUIEventListeners(org.w3c.dom.Document doc)
Adds EventListeners to the input document to handle the cursor property. |
BridgeContext |
createSubBridgeContext(SVGOMDocument newDoc)
This function creates a new 'sub' BridgeContext to associated with 'newDoc' if one currently doesn't exist, otherwise it returns the BridgeContext currently associated with the document. |
URIResolver |
createURIResolver(org.w3c.dom.svg.SVGDocument doc,
DocumentLoader dl)
Returns a new URIResolver object. |
void |
dispose()
Disposes this BridgeContext. |
void |
removeBindingListener()
Removes the BindingListener from the XBLManager. |
protected void |
removeDOMListeners()
Removes event listeners from the DOM and CSS engine. |
void |
removeUIEventListeners(org.w3c.dom.Document doc)
|
void |
startMouseCapture(EventTarget target,
boolean sendAll,
boolean autoRelease)
Starts mouse capture. |
void |
stopMouseCapture()
Stops mouse capture. |
protected void |
storeImplementationEventListenerNS(EventTarget t,
java.lang.String ns,
java.lang.String s,
EventListener l,
boolean b)
Adds to the eventListenerSet the specified implementation event listener registration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SVG12BridgeContext.XBLBindingListener bindingListener
protected SVG12BridgeContext.XBLContentListener contentListener
protected EventTarget mouseCaptureTarget
protected boolean mouseCaptureSendAll
protected boolean mouseCaptureAutoRelease
Constructor Detail |
---|
public SVG12BridgeContext(UserAgent userAgent)
userAgent
- the user agentpublic SVG12BridgeContext(UserAgent userAgent, DocumentLoader loader)
userAgent
- the user agentloader
- document loaderpublic SVG12BridgeContext(UserAgent userAgent, InterpreterPool interpreterPool, DocumentLoader documentLoader)
userAgent
- the user agentinterpreterPool
- the interpreter pooldocumentLoader
- document loaderMethod Detail |
---|
public URIResolver createURIResolver(org.w3c.dom.svg.SVGDocument doc, DocumentLoader dl)
createURIResolver
in class BridgeContext
public void addGVTListener(org.w3c.dom.Document doc)
addGVTListener
in class BridgeContext
public void dispose()
dispose
in class BridgeContext
public void addBindingListener()
public void removeBindingListener()
public void addDOMListeners()
addDOMListeners
in class BridgeContext
public void addUIEventListeners(org.w3c.dom.Document doc)
addUIEventListeners
in class BridgeContext
public void removeUIEventListeners(org.w3c.dom.Document doc)
removeUIEventListeners
in class BridgeContext
protected void removeDOMListeners()
removeDOMListeners
in class BridgeContext
protected void storeImplementationEventListenerNS(EventTarget t, java.lang.String ns, java.lang.String s, EventListener l, boolean b)
public BridgeContext createSubBridgeContext(SVGOMDocument newDoc)
BridgeContext
createSubBridgeContext
in class BridgeContext
newDoc
- The document to get/create a BridgeContext for.public void startMouseCapture(EventTarget target, boolean sendAll, boolean autoRelease)
public void stopMouseCapture()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |