|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.refimpl.bridge.ConcreteBridgeContext
This class is the global context used by all Bridge instances.
Constructor Summary | |
ConcreteBridgeContext()
Constructs a new empty BridgeContext. |
Method Summary | |
void |
bind(Element element,
GraphicsNode node)
Binds a GraphicsNode and an Element. |
void |
bind(Element element,
StyleReference reference)
Binds a style element to a style reference. |
Bridge |
getBridge(Element element)
Returns the bridge associated with the specified element. |
BridgeUpdateManager |
getBridgeUpdateManager()
|
Viewport |
getCurrentViewport()
Returns the current viewport to use to compute percentages and units. |
DocumentLoader |
getDocumentLoader()
Returns the document loader to use to load a document. |
Element |
getElement(GraphicsNode node)
Returns the Element bound to the specified GraphicsNode if any. |
GraphicsNode |
getGraphicsNode(Element element)
Returns the GraphicsNode bound to the specified Element if any. |
GraphicsNodeRableFactory |
getGraphicsNodeRableFactory()
Returns a GraphicsNodeRable factory |
GVTBuilder |
getGVTBuilder()
Returns the GVT builder that is currently used to build the GVT tree. |
GVTFactory |
getGVTFactory()
Returns the GVT Factory that can be used to create GraphicsNode objects. |
InterpreterPool |
getInterpreterPool()
Returns the interpreter pool that can be used for scripting. |
ParserFactory |
getParserFactory()
Returns the Parser factory that can be used to parse the attributes of an Element. |
java.util.List |
getStyleReferenceList(Element element)
Returns an enumeration of all style refence for the specified style element. |
UserAgent |
getUserAgent()
Returns the UserAgent than can used by the bridge. |
ViewCSS |
getViewCSS()
Returns the view CSS |
void |
putBridge(java.lang.String namespaceURI,
java.lang.String localName,
Bridge bridge)
Associates the specified Bridge object with the specified namespace URI nad local name. |
void |
removeBridge(java.lang.String namespaceURI,
java.lang.String localName)
Removes the Bridge object associated to the specified namespace URI and local name. |
void |
setCurrentViewport(Viewport newViewport)
Sets the current viewport to use to compute percentages and units to the specified SVG element. |
void |
setDocumentLoader(DocumentLoader newDocumentLoader)
Sets the document loader to use to load a document. |
void |
setGraphicsNodeRableFactory(GraphicsNodeRableFactory f)
Sets the GraphicsNodeRableFactory to use. |
void |
setGVTBuilder(GVTBuilder gvtBuilder)
Sets the GVT builder used to build the GVT tree. |
void |
setGVTFactory(GVTFactory gvtFactory)
Sets the GVT factory to use to create GraphicsNode |
void |
setInterpreterPool(InterpreterPool interpreterPool)
|
void |
setParserFactory(ParserFactory parserFactory)
Sets the Parser factory to use to parse XML attributes. |
void |
setUserAgent(UserAgent userAgent)
Sets the User agent. |
void |
setViewCSS(ViewCSS viewCSS)
Sets the view CSS. |
void |
unbind(Element element)
UnBinds an Element and its graphics Node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConcreteBridgeContext()
Method Detail |
public Viewport getCurrentViewport()
BridgeContext
getCurrentViewport
in interface BridgeContext
public void setCurrentViewport(Viewport newViewport)
BridgeContext
setCurrentViewport
in interface BridgeContext
org.apache.batik.bridge.BridgeContext
newViewport
- the new viewportpublic GVTBuilder getGVTBuilder()
BridgeContext
getGVTBuilder
in interface BridgeContext
public void setGVTBuilder(GVTBuilder gvtBuilder)
BridgeContext
setGVTBuilder
in interface BridgeContext
public DocumentLoader getDocumentLoader()
BridgeContext
getDocumentLoader
in interface BridgeContext
public void setDocumentLoader(DocumentLoader newDocumentLoader)
BridgeContext
setDocumentLoader
in interface BridgeContext
org.apache.batik.bridge.BridgeContext
newDocumentLoader
- the new document loaderpublic ViewCSS getViewCSS()
BridgeContext
getViewCSS
in interface BridgeContext
public void setViewCSS(ViewCSS viewCSS)
BridgeContext
setViewCSS
in interface BridgeContext
public BridgeUpdateManager getBridgeUpdateManager()
public InterpreterPool getInterpreterPool()
BridgeContext
getInterpreterPool
in interface BridgeContext
public void setInterpreterPool(InterpreterPool interpreterPool)
public UserAgent getUserAgent()
BridgeContext
UserAgent
than can used by the bridge.getUserAgent
in interface BridgeContext
public void setUserAgent(UserAgent userAgent)
BridgeContext
setUserAgent
in interface BridgeContext
public Bridge getBridge(Element element)
BridgeContext
getBridge
in interface BridgeContext
public void putBridge(java.lang.String namespaceURI, java.lang.String localName, Bridge bridge)
BridgeContext
putBridge
in interface BridgeContext
org.apache.batik.bridge.BridgeContext
namespaceURI
- the namespace URIlocalName
- the local namebridge
- the bridge objectpublic void removeBridge(java.lang.String namespaceURI, java.lang.String localName)
BridgeContext
removeBridge
in interface BridgeContext
org.apache.batik.bridge.BridgeContext
namespaceURI
- the namespace URIlocalName
- the local namepublic void bind(Element element, GraphicsNode node)
BridgeContext
bind
in interface BridgeContext
public void unbind(Element element)
BridgeContext
unbind
in interface BridgeContext
public GraphicsNode getGraphicsNode(Element element)
BridgeContext
getGraphicsNode
in interface BridgeContext
public Element getElement(GraphicsNode node)
BridgeContext
getElement
in interface BridgeContext
public void bind(Element element, StyleReference reference)
BridgeContext
bind
in interface BridgeContext
public java.util.List getStyleReferenceList(Element element)
BridgeContext
getStyleReferenceList
in interface BridgeContext
public GVTFactory getGVTFactory()
BridgeContext
getGVTFactory
in interface BridgeContext
public void setGVTFactory(GVTFactory gvtFactory)
BridgeContext
setGVTFactory
in interface BridgeContext
org.apache.batik.bridge.BridgeContext
gvtFactory
- the new gvt factory to usepublic void setParserFactory(ParserFactory parserFactory)
BridgeContext
setParserFactory
in interface BridgeContext
org.apache.batik.bridge.BridgeContext
parserFactory
- the new parser factory to usepublic ParserFactory getParserFactory()
BridgeContext
getParserFactory
in interface BridgeContext
public GraphicsNodeRableFactory getGraphicsNodeRableFactory()
BridgeContext
getGraphicsNodeRableFactory
in interface BridgeContext
public void setGraphicsNodeRableFactory(GraphicsNodeRableFactory f)
BridgeContext
setGraphicsNodeRableFactory
in interface BridgeContext
org.apache.batik.bridge.BridgeContext
f
- the new GraphicsNodeRableFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |