Package org.apache.fop.svg
Class AbstractFOPTranscoder.FOPTranscoderUserAgent
java.lang.Object
org.apache.batik.bridge.UserAgentAdapter
org.apache.fop.svg.AbstractFOPTranscoder.FOPTranscoderUserAgent
- All Implemented Interfaces:
org.apache.batik.bridge.UserAgent
- Enclosing class:
- AbstractFOPTranscoder
protected class AbstractFOPTranscoder.FOPTranscoderUserAgent
extends org.apache.batik.bridge.UserAgentAdapter
A user agent implementation for FOP's Transcoders.
-
Field Summary
Fields inherited from class org.apache.batik.bridge.UserAgentAdapter
ctx, extensions, FEATURES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Displays the specified error using theErrorHandler
.void
displayError
(String message) Displays the specified error message using theErrorHandler
.void
displayMessage
(String message) Displays the specified message using theErrorHandler
.org.apache.batik.bridge.FontFamilyResolver
getMedia()
Get the media for this transcoder.float
Returns the pixel to millimeter conversion factor specified in theTranscodingHints
or 0.3528 if any.void
setFontFamilyResolver
(FOPFontFamilyResolver resolver) Methods inherited from class org.apache.batik.bridge.UserAgentAdapter
addStdFeatures, checkLoadExternalResource, checkLoadScript, deselectAll, getBolderFontWeight, getBrokenLinkDocument, getClientAreaLocationOnScreen, getEventDispatcher, getLighterFontWeight, getMediumFontSize, getPixelToMM, getStandardBolderFontWeight, getStandardLighterFontWeight, handleElement, hasFeature, loadDocument, openLink, registerExtension, runThread, setBridgeContext, setSVGCursor, setTextSelection, showAlert, showConfirm, showPrompt, showPrompt, supportExtension
-
Constructor Details
-
FOPTranscoderUserAgent
protected FOPTranscoderUserAgent()
-
-
Method Details
-
displayError
Displays the specified error message using theErrorHandler
.- Parameters:
message
- the message to display
-
displayError
Displays the specified error using theErrorHandler
.- Specified by:
displayError
in interfaceorg.apache.batik.bridge.UserAgent
- Parameters:
e
- the exception to display
-
displayMessage
Displays the specified message using theErrorHandler
.- Specified by:
displayMessage
in interfaceorg.apache.batik.bridge.UserAgent
- Parameters:
message
- the message to display
-
getPixelUnitToMillimeter
public float getPixelUnitToMillimeter()Returns the pixel to millimeter conversion factor specified in theTranscodingHints
or 0.3528 if any.- Specified by:
getPixelUnitToMillimeter
in interfaceorg.apache.batik.bridge.UserAgent
- Returns:
- the pixel unit to millimeter factor
-
getMedia
Get the media for this transcoder. Which is always print.- Specified by:
getMedia
in interfaceorg.apache.batik.bridge.UserAgent
- Returns:
- PDF media is "print"
-
setFontFamilyResolver
-
getFontFamilyResolver
public org.apache.batik.bridge.FontFamilyResolver getFontFamilyResolver()- Specified by:
getFontFamilyResolver
in interfaceorg.apache.batik.bridge.UserAgent
- Overrides:
getFontFamilyResolver
in classorg.apache.batik.bridge.UserAgentAdapter
-