org.apache.batik.refimpl.bridge
Class ConcreteBridgeContext

java.lang.Object
  |
  +--org.apache.batik.refimpl.bridge.ConcreteBridgeContext
All Implemented Interfaces:
BridgeContext
Direct Known Subclasses:
SVGBridgeContext

public class ConcreteBridgeContext
extends java.lang.Object
implements BridgeContext

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

ConcreteBridgeContext

public ConcreteBridgeContext()
Constructs a new empty BridgeContext.
Method Detail

getCurrentViewport

public Viewport getCurrentViewport()
Description copied from interface: BridgeContext
Returns the current viewport to use to compute percentages and units.
Specified by:
getCurrentViewport in interface BridgeContext

setCurrentViewport

public void setCurrentViewport(Viewport newViewport)
Description copied from interface: BridgeContext
Sets the current viewport to use to compute percentages and units to the specified SVG element.
Specified by:
setCurrentViewport in interface BridgeContext
Following copied from interface: org.apache.batik.bridge.BridgeContext
Parameters:
newViewport - the new viewport

getGVTBuilder

public GVTBuilder getGVTBuilder()
Description copied from interface: BridgeContext
Returns the GVT builder that is currently used to build the GVT tree.
Specified by:
getGVTBuilder in interface BridgeContext

setGVTBuilder

public void setGVTBuilder(GVTBuilder gvtBuilder)
Description copied from interface: BridgeContext
Sets the GVT builder used to build the GVT tree.
Specified by:
setGVTBuilder in interface BridgeContext

getDocumentLoader

public DocumentLoader getDocumentLoader()
Description copied from interface: BridgeContext
Returns the document loader to use to load a document.
Specified by:
getDocumentLoader in interface BridgeContext

setDocumentLoader

public void setDocumentLoader(DocumentLoader newDocumentLoader)
Description copied from interface: BridgeContext
Sets the document loader to use to load a document.
Specified by:
setDocumentLoader in interface BridgeContext
Following copied from interface: org.apache.batik.bridge.BridgeContext
Parameters:
newDocumentLoader - the new document loader

getViewCSS

public ViewCSS getViewCSS()
Description copied from interface: BridgeContext
Returns the view CSS
Specified by:
getViewCSS in interface BridgeContext

setViewCSS

public void setViewCSS(ViewCSS viewCSS)
Description copied from interface: BridgeContext
Sets the view CSS.
Specified by:
setViewCSS in interface BridgeContext

getBridgeUpdateManager

public BridgeUpdateManager getBridgeUpdateManager()

getInterpreterPool

public InterpreterPool getInterpreterPool()
Description copied from interface: BridgeContext
Returns the interpreter pool that can be used for scripting.
Specified by:
getInterpreterPool in interface BridgeContext

setInterpreterPool

public void setInterpreterPool(InterpreterPool interpreterPool)

getUserAgent

public UserAgent getUserAgent()
Description copied from interface: BridgeContext
Returns the UserAgent than can used by the bridge.
Specified by:
getUserAgent in interface BridgeContext

setUserAgent

public void setUserAgent(UserAgent userAgent)
Description copied from interface: BridgeContext
Sets the User agent.
Specified by:
setUserAgent in interface BridgeContext

getBridge

public Bridge getBridge(Element element)
Description copied from interface: BridgeContext
Returns the bridge associated with the specified element.
Specified by:
getBridge in interface BridgeContext

putBridge

public void putBridge(java.lang.String namespaceURI,
                      java.lang.String localName,
                      Bridge bridge)
Description copied from interface: BridgeContext
Associates the specified Bridge object with the specified namespace URI nad local name.
Specified by:
putBridge in interface BridgeContext
Following copied from interface: org.apache.batik.bridge.BridgeContext
Parameters:
namespaceURI - the namespace URI
localName - the local name
bridge - the bridge object

removeBridge

public void removeBridge(java.lang.String namespaceURI,
                         java.lang.String localName)
Description copied from interface: BridgeContext
Removes the Bridge object associated to the specified namespace URI and local name.
Specified by:
removeBridge in interface BridgeContext
Following copied from interface: org.apache.batik.bridge.BridgeContext
Parameters:
namespaceURI - the namespace URI
localName - the local name

bind

public void bind(Element element,
                 GraphicsNode node)
Description copied from interface: BridgeContext
Binds a GraphicsNode and an Element.
Specified by:
bind in interface BridgeContext

unbind

public void unbind(Element element)
Description copied from interface: BridgeContext
UnBinds an Element and its graphics Node.
Specified by:
unbind in interface BridgeContext

getGraphicsNode

public GraphicsNode getGraphicsNode(Element element)
Description copied from interface: BridgeContext
Returns the GraphicsNode bound to the specified Element if any.
Specified by:
getGraphicsNode in interface BridgeContext

getElement

public Element getElement(GraphicsNode node)
Description copied from interface: BridgeContext
Returns the Element bound to the specified GraphicsNode if any.
Specified by:
getElement in interface BridgeContext

bind

public void bind(Element element,
                 StyleReference reference)
Description copied from interface: BridgeContext
Binds a style element to a style reference. Several style reference can be bound to the same style element.
Specified by:
bind in interface BridgeContext

getStyleReferenceList

public java.util.List getStyleReferenceList(Element element)
Description copied from interface: BridgeContext
Returns an enumeration of all style refence for the specified style element.
Specified by:
getStyleReferenceList in interface BridgeContext

getGVTFactory

public GVTFactory getGVTFactory()
Description copied from interface: BridgeContext
Returns the GVT Factory that can be used to create GraphicsNode objects.
Specified by:
getGVTFactory in interface BridgeContext

setGVTFactory

public void setGVTFactory(GVTFactory gvtFactory)
Description copied from interface: BridgeContext
Sets the GVT factory to use to create GraphicsNode
Specified by:
setGVTFactory in interface BridgeContext
Following copied from interface: org.apache.batik.bridge.BridgeContext
Parameters:
gvtFactory - the new gvt factory to use

setParserFactory

public void setParserFactory(ParserFactory parserFactory)
Description copied from interface: BridgeContext
Sets the Parser factory to use to parse XML attributes.
Specified by:
setParserFactory in interface BridgeContext
Following copied from interface: org.apache.batik.bridge.BridgeContext
Parameters:
parserFactory - the new parser factory to use

getParserFactory

public ParserFactory getParserFactory()
Description copied from interface: BridgeContext
Returns the Parser factory that can be used to parse the attributes of an Element.
Specified by:
getParserFactory in interface BridgeContext

getGraphicsNodeRableFactory

public GraphicsNodeRableFactory getGraphicsNodeRableFactory()
Description copied from interface: BridgeContext
Returns a GraphicsNodeRable factory
Specified by:
getGraphicsNodeRableFactory in interface BridgeContext

setGraphicsNodeRableFactory

public void setGraphicsNodeRableFactory(GraphicsNodeRableFactory f)
Description copied from interface: BridgeContext
Sets the GraphicsNodeRableFactory to use.
Specified by:
setGraphicsNodeRableFactory in interface BridgeContext
Following copied from interface: org.apache.batik.bridge.BridgeContext
Parameters:
f - the new GraphicsNodeRableFactory


Copyright © 2000 Apache Software Foundation. All Rights Reserved.