primaryContext
The bridge context for the primary document, if this is a bridge
context for a resource document.
ErrorConstants
, CSSContext
SVG12BridgeContext
GraphicsNodeRenderContext
,
and the different objects required by the GVT builder to interpret
a SVG DOM tree such as the current viewport or the user agent.protected class
static class
protected class
protected class
protected class
protected class
protected class
protected class
protected class
protected static class
static class
protected AnimatedAttributeListener
protected SVGAnimationEngine
protected float
protected int
protected HashSet
protected CSSEngineListener
protected CursorManager
protected Bridge
protected Document
protected DocumentLoader
protected Dimension2D
protected EventListener
protected EventListener
protected EventListener
protected EventListener
static final int
protected int
protected Map
protected Map
protected Set
protected List
protected FocusManager
protected static List
protected GVTBuilder
static final int
protected Map
protected InterpreterPool
protected boolean
protected Map
protected Map
protected BridgeContext
protected Set
static final int
protected TextPainter
protected UpdateManager
protected UserAgent
protected Map
protected List
protected XBLManager
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
protected
BridgeContext(UserAgent userAgent)
BridgeContext(UserAgent userAgent,
DocumentLoader loader)
BridgeContext(UserAgent userAgent,
InterpreterPool interpreterPool,
DocumentLoader documentLoader)
void
void
addGVTListener(Document doc)
void
void
bind(Node node,
GraphicsNode gn)
boolean
boolean
checkInteractiveElement(org.w3c.dom.svg.SVGDocument doc,
Element e)
void
checkLoadExternalResource(ParsedURL resourceURL,
ParsedURL docURL)
protected void
void
createSubBridgeContext(SVGOMDocument newDoc)
createURIResolver(org.w3c.dom.svg.SVGDocument doc,
DocumentLoader dl)
void
dispose()
protected void
finalize()
float
getBlockHeight(Element elt)
float
getBlockWidth(Element elt)
float
getBolderFontWeight(float f)
protected static BridgeUpdateHandler
getBridgeUpdateHandler(Node node)
final FontFamilyResolver
static List
getGraphicsNode(Node node)
getInterpreter(String language)
float
getLighterFontWeight(float f)
float
float
float
getReferencedElement(Element e,
String uri)
getReferencedNode(Element e,
String uri)
protected static SVGContext
getSVGContext(Node node)
getSystemColor(String ident)
boolean
hasGraphicsNodeBridge(Element element)
protected void
initializeDocument(Document document)
boolean
boolean
boolean
boolean
boolean
isSVG12()
void
openViewport(Element e,
Viewport viewport)
void
Bridge
object with the specified
namespace URI and local name.void
Bridge
object with it's
namespace URI and local name.void
putReservedNamespaceURI(String namespaceURI)
void
void
removeBridge(String namespaceURI,
String localName)
Bridge
object associated to the specified
namespace URI and local name.protected void
void
removeReservedNamespaceURI(String namespaceURI)
void
void
void
setAnimationLimitingCPU(float pc)
void
setAnimationLimitingFPS(float fps)
protected void
void
void
setDefaultBridge(Bridge bridge)
Bridge
object to be used for foreign
namespace elements.protected void
setDocument(Document document)
protected void
setDocumentLoader(DocumentLoader newDocumentLoader)
protected void
void
setDynamic(boolean dynamic)
dynamic
is true
STATIC otherwise.void
setDynamicState(int status)
void
setElementData(Node n,
Object data)
protected void
setFontFamilyMap(Map fontFamilyMap)
protected void
setGVTBuilder(GVTBuilder gvtBuilder)
void
setInteractive(boolean interactive)
interactive
is
true STATIC otherwise.protected void
setInterpreterPool(InterpreterPool interpreterPool)
void
setTextPainter(TextPainter textPainter)
protected void
setUpdateManager(BridgeContext ctx,
UpdateManager um)
protected void
protected void
setUserAgent(UserAgent userAgent)
protected void
setXBLManager(BridgeContext ctx,
XBLManager xm)
protected void
storeEventListener(EventTarget t,
String s,
EventListener l,
boolean b)
protected void
storeEventListenerNS(EventTarget t,
String n,
String s,
EventListener l,
boolean b)
void
userAgent
- the user agentuserAgent
- the user agentloader
- document loaderuserAgent
- the user agentinterpreterPool
- the interpreter pooldocumentLoader
- document loadernewDoc
- The document to get/create a BridgeContext for.getCSSEngineForElement
in interface CSSContext
textPainter
- the text painter for text nodesdocument
- the documentfontFamilyMap
- the map of font familiesuserAgent
- the user agentinterpreterPool
- the interpreter poollanguage
- the scripting languagenewDocumentLoader
- the new document loaderd
- the actual size of the SVG documentisDynamic
in interface CSSContext
isInteractive
in interface CSSContext
gvtBuilder.build(...)
)
otherwise, that will have no effect.status
- the document dynamicStatusdynamic
is true
STATIC otherwise.interactive
is
true STATIC otherwise.e
- the element referencinguri
- the uri of the referenced nodee
- the element referencinguri
- the uri of the referenced elemente
- the element interested in its viewporte
- the element that defines a new viewportviewport
- the viewport of the elemente
- the element that closes its viewportnode
- the DOM Node to bind to the specified graphics nodegn
- the graphics node to bind to the specified elementnode
- the DOM Node to unbindnode
- the DOM Node associated to the graphics node to returngn
- the graphics node associated to the element to returnelement
- the elementelement
- the elementnamespaceURI
- namespace of the requested elementlocalName
- element's local nameBridge
object with the specified
namespace URI and local name.namespaceURI
- the namespace URIlocalName
- the local namebridge
- the bridge that manages the elementBridge
object with it's
namespace URI and local name.bridge
- the bridge that manages the elementBridge
object associated to the specified
namespace URI and local name.namespaceURI
- the namespace URIlocalName
- the local nameBridge
object to be used for foreign
namespace elements.bridge
- the bridge that manages the elementgetSystemColor
in interface CSSContext
getDefaultFontFamily
in interface CSSContext
getLighterFontWeight
in interface CSSContext
getBolderFontWeight
in interface CSSContext
getPixelUnitToMillimeter
in interface CSSContext
getPixelToMillimeter
in interface CSSContext
getMediumFontSize
in interface CSSContext
getBlockWidth
in interface CSSContext
getBlockHeight
in interface CSSContext
checkLoadExternalResource
in interface CSSContext
resourceURL
- url for the script, as defined in
the resource's xlink:href attribute. If that
attribute was empty, then this parameter should
be nulldocURL
- url for the document into which the
resource was found.SecurityException
pc
- the maximum percentage of CPU to use (0 < pc ≤ 1)fps
- the maximum number of frames per second (fps > 0)