Package org.apache.fop.svg
Class AbstractFOPBridgeContext
java.lang.Object
org.apache.batik.bridge.BridgeContext
org.apache.fop.svg.AbstractFOPBridgeContext
- All Implemented Interfaces:
org.apache.batik.bridge.ErrorConstants,org.apache.batik.css.engine.CSSContext
- Direct Known Subclasses:
AFPBridgeContext,PDFBridgeContext,PSBridgeContext
public abstract class AbstractFOPBridgeContext
extends org.apache.batik.bridge.BridgeContext
A FOP base implementation of a Batik BridgeContext.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.batik.bridge.BridgeContext
org.apache.batik.bridge.BridgeContext.AnimatedAttrListener, org.apache.batik.bridge.BridgeContext.CSSEngineUserAgentWrapper, org.apache.batik.bridge.BridgeContext.CSSPropertiesChangedListener, org.apache.batik.bridge.BridgeContext.DOMAttrModifiedEventListener, org.apache.batik.bridge.BridgeContext.DOMCharacterDataModifiedEventListener, org.apache.batik.bridge.BridgeContext.DOMMouseOutEventListener, org.apache.batik.bridge.BridgeContext.DOMMouseOverEventListener, org.apache.batik.bridge.BridgeContext.DOMNodeInsertedEventListener, org.apache.batik.bridge.BridgeContext.DOMNodeRemovedEventListener, org.apache.batik.bridge.BridgeContext.EventListenerMememto, org.apache.batik.bridge.BridgeContext.SoftReferenceMememto -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FontInfothe font listprotected final org.apache.xmlgraphics.image.loader.ImageManagerimage managerprotected final org.apache.xmlgraphics.image.loader.ImageSessionContextimage session contextprotected final AffineTransformlink transformFields inherited from class org.apache.batik.bridge.BridgeContext
animatedAttributeListener, animationEngine, animationLimitingAmount, animationLimitingMode, childContexts, cssPropertiesChangedListener, cursorManager, defaultBridge, document, documentLoader, documentSize, domAttrModifiedEventListener, domCharacterDataModifiedEventListener, domNodeInsertedEventListener, domNodeRemovedEventListener, DYNAMIC, dynamicStatus, elementDataMap, elementNodeMap, eventListenerSet, extensions, focusManager, globalExtensions, gvtBuilder, INTERACTIVE, interpreterMap, interpreterPool, isSVG12, namespaceURIMap, nodeElementMap, primaryContext, reservedNamespaceSet, STATIC, textPainter, updateManager, userAgent, viewportMap, viewportStack, xblManagerFields 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
ConstructorsConstructorDescriptionAbstractFOPBridgeContext(org.apache.batik.bridge.UserAgent userAgent, org.apache.batik.bridge.DocumentLoader loader, FontInfo fontInfo, org.apache.xmlgraphics.image.loader.ImageManager imageManager, org.apache.xmlgraphics.image.loader.ImageSessionContext imageSessionContext, AffineTransform linkTransform) Constructs a new bridge context.AbstractFOPBridgeContext(org.apache.batik.bridge.UserAgent userAgent, FontInfo fontInfo, org.apache.xmlgraphics.image.loader.ImageManager imageManager, org.apache.xmlgraphics.image.loader.ImageSessionContext imageSessionContext) Constructs a new bridge context.AbstractFOPBridgeContext(org.apache.batik.bridge.UserAgent userAgent, FontInfo fontInfo, org.apache.xmlgraphics.image.loader.ImageManager imageManager, org.apache.xmlgraphics.image.loader.ImageSessionContext imageSessionContext, AffineTransform linkTransform) Constructs a new bridge context. -
Method Summary
Modifier and TypeMethodDescriptionabstract org.apache.batik.bridge.BridgeContextorg.apache.xmlgraphics.image.loader.ImageManagerReturns the ImageManager to be used by the ImageElementBridge.org.apache.xmlgraphics.image.loader.ImageSessionContextReturns the ImageSessionContext to be used by the ImageElementBridge.protected voidputElementBridgeConditional(String className, String testFor) Methods inherited from class org.apache.batik.bridge.BridgeContext
addDOMListeners, addGVTListener, addUIEventListeners, bind, checkInteractiveElement, checkInteractiveElement, checkLoadExternalResource, clearChildContexts, closeViewport, createBridgeContext, createSubBridgeContext, createURIResolver, dispose, finalize, getAnimationEngine, getBlockHeight, getBlockWidth, getBolderFontWeight, getBridge, getBridge, getBridgeExtensions, getBridgeUpdateHandler, getChildContexts, getCSSEngineForElement, getCursorManager, getDefaultFontFamily, getDocument, getDocumentBridge, getDocumentLoader, getDocumentSize, getElement, getElementData, getFocusManager, getFontFamilyMap, getFontFamilyResolver, getGlobalBridgeExtensions, getGraphicsNode, getGVTBuilder, getInterpreter, getInterpreterPool, getLighterFontWeight, getMediumFontSize, getPixelToMillimeter, getPixelUnitToMillimeter, getPrimaryBridgeContext, getReferencedElement, getReferencedNode, getSVGContext, getSystemColor, getTextPainter, getUpdateManager, getUserAgent, getViewport, hasGraphicsNodeBridge, initializeDocument, isDynamic, isDynamicDocument, isInteractive, isInteractiveDocument, isSVG12, openViewport, putBridge, putBridge, putReservedNamespaceURI, registerSVGBridges, removeBridge, removeDOMListeners, removeReservedNamespaceURI, removeUIEventListeners, removeViewport, setAnimationLimitingCPU, setAnimationLimitingFPS, setAnimationLimitingMode, setAnimationLimitingNone, setDefaultBridge, setDocument, setDocumentLoader, setDocumentSize, setDynamic, setDynamicState, setElementData, setFontFamilyMap, setGVTBuilder, setInteractive, setInterpreterPool, setTextPainter, setUpdateManager, setUpdateManager, setUserAgent, setXBLManager, storeEventListener, storeEventListenerNS, unbind
-
Field Details
-
fontInfo
the font list -
imageManager
protected final org.apache.xmlgraphics.image.loader.ImageManager imageManagerimage manager -
imageSessionContext
protected final org.apache.xmlgraphics.image.loader.ImageSessionContext imageSessionContextimage session context -
linkTransform
link transform
-
-
Constructor Details
-
AbstractFOPBridgeContext
public AbstractFOPBridgeContext(org.apache.batik.bridge.UserAgent userAgent, org.apache.batik.bridge.DocumentLoader loader, FontInfo fontInfo, org.apache.xmlgraphics.image.loader.ImageManager imageManager, org.apache.xmlgraphics.image.loader.ImageSessionContext imageSessionContext, AffineTransform linkTransform) Constructs a new bridge context.- Parameters:
userAgent- the user agentloader- the Document Loader to use for referenced documents.fontInfo- the font list for the text painter, may be null in which case text is painted as shapesimageManager- an image managerimageSessionContext- an image session contextlinkTransform- AffineTransform to properly place links, may be null
-
AbstractFOPBridgeContext
public AbstractFOPBridgeContext(org.apache.batik.bridge.UserAgent userAgent, FontInfo fontInfo, org.apache.xmlgraphics.image.loader.ImageManager imageManager, org.apache.xmlgraphics.image.loader.ImageSessionContext imageSessionContext, AffineTransform linkTransform) Constructs a new bridge context.- Parameters:
userAgent- the user agentfontInfo- the font list for the text painter, may be null in which case text is painted as shapesimageManager- an image managerimageSessionContext- an image session contextlinkTransform- AffineTransform to properly place links, may be null
-
AbstractFOPBridgeContext
public AbstractFOPBridgeContext(org.apache.batik.bridge.UserAgent userAgent, FontInfo fontInfo, org.apache.xmlgraphics.image.loader.ImageManager imageManager, org.apache.xmlgraphics.image.loader.ImageSessionContext imageSessionContext) Constructs a new bridge context.- Parameters:
userAgent- the user agentfontInfo- the font list for the text painter, may be null in which case text is painted as shapesimageManager- an image managerimageSessionContext- an image session context
-
-
Method Details
-
getImageManager
public org.apache.xmlgraphics.image.loader.ImageManager getImageManager()Returns the ImageManager to be used by the ImageElementBridge.- Returns:
- the image manager
-
getImageSessionContext
public org.apache.xmlgraphics.image.loader.ImageSessionContext getImageSessionContext()Returns the ImageSessionContext to be used by the ImageElementBridge.- Returns:
- the image session context
-
putElementBridgeConditional
- Parameters:
className- name of bridge class to load and constructtestFor- class name to test for presence
-
createBridgeContext
public abstract org.apache.batik.bridge.BridgeContext createBridgeContext()- Returns:
- new bridge context
-