Package org.apache.fop.svg
Class SVGUserAgent
java.lang.Object
org.apache.batik.bridge.UserAgentAdapter
org.apache.fop.svg.SimpleSVGUserAgent
org.apache.fop.svg.SVGUserAgent
- All Implemented Interfaces:
org.apache.batik.bridge.UserAgent
The SVG user agent. This is an implementation of the Batik SVG user agent.
-
Field Summary
Fields inherited from class org.apache.batik.bridge.UserAgentAdapter
ctx, extensions, FEATURES -
Constructor Summary
ConstructorsConstructorDescriptionSVGUserAgent(FOUserAgent foUserAgent, org.apache.batik.bridge.FontFamilyResolver fontFamilyResolver) Creates a new SVGUserAgent.SVGUserAgent(FOUserAgent foUserAgent, org.apache.batik.bridge.FontFamilyResolver fontFamilyResolver, AffineTransform at) Creates a new SVGUserAgent. -
Method Summary
Modifier and TypeMethodDescriptionvoidDisplays an error resulting from the specified Exception.voiddisplayError(String message) Displays an error message.voiddisplayMessage(String message) Displays a message in the User Agent interface.Returns the last exception sent to thedisplayError(Exception)method.voidShows an alert dialog box.Methods inherited from class org.apache.fop.svg.SimpleSVGUserAgent
getFontFamilyResolver, getLanguages, getMedia, getMediumFontSize, getPixelUnitToMillimeter, getTransform, getUserStyleSheetURI, getViewportSize, getXMLParserClassName, isXMLParserValidating, setTransformMethods inherited from class org.apache.batik.bridge.UserAgentAdapter
addStdFeatures, checkLoadExternalResource, checkLoadScript, deselectAll, getAlternateStyleSheet, getBolderFontWeight, getBrokenLinkDocument, getClientAreaLocationOnScreen, getDefaultFontFamily, getEventDispatcher, getExternalResourceSecurity, getLighterFontWeight, getPixelToMM, getScriptSecurity, getSourceResolution, getStandardBolderFontWeight, getStandardLighterFontWeight, handleElement, hasFeature, loadDocument, openLink, registerExtension, runThread, setBridgeContext, setSourceResolution, setSVGCursor, setTextSelection, showConfirm, showPrompt, showPrompt, supportExtension
-
Constructor Details
-
SVGUserAgent
public SVGUserAgent(FOUserAgent foUserAgent, org.apache.batik.bridge.FontFamilyResolver fontFamilyResolver, AffineTransform at) Creates a new SVGUserAgent.- Parameters:
foUserAgent- the FO user agent to associate with this SVG user agentfontFamilyResolver- the font family resolverat- the current transform
-
SVGUserAgent
public SVGUserAgent(FOUserAgent foUserAgent, org.apache.batik.bridge.FontFamilyResolver fontFamilyResolver) Creates a new SVGUserAgent.- Parameters:
foUserAgent- the FO user agent to associate with this SVG user agent
-
-
Method Details
-
getLastException
Returns the last exception sent to thedisplayError(Exception)method.- Returns:
- the last exception or null if no exception occurred
-
displayError
Displays an error message.- Overrides:
displayErrorin classorg.apache.batik.bridge.UserAgentAdapter- Parameters:
message- the message to display
-
displayError
Displays an error resulting from the specified Exception.- Specified by:
displayErrorin interfaceorg.apache.batik.bridge.UserAgent- Overrides:
displayErrorin classorg.apache.batik.bridge.UserAgentAdapter- Parameters:
ex- the exception to display
-
displayMessage
Displays a message in the User Agent interface. The given message is typically displayed in a status bar.- Specified by:
displayMessagein interfaceorg.apache.batik.bridge.UserAgent- Overrides:
displayMessagein classorg.apache.batik.bridge.UserAgentAdapter- Parameters:
message- the message to display
-
showAlert
Shows an alert dialog box.- Specified by:
showAlertin interfaceorg.apache.batik.bridge.UserAgent- Overrides:
showAlertin classorg.apache.batik.bridge.UserAgentAdapter- Parameters:
message- the message to display
-