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.UserAgentAdapterA user agent implementation for FOP's Transcoders.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFOPTranscoderUserAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisplayError(java.lang.Exception e)Displays the specified error using theErrorHandler.voiddisplayError(java.lang.String message)Displays the specified error message using theErrorHandler.voiddisplayMessage(java.lang.String message)Displays the specified message using theErrorHandler.org.apache.batik.bridge.FontFamilyResolvergetFontFamilyResolver()java.lang.StringgetMedia()Get the media for this transcoder.floatgetPixelUnitToMillimeter()Returns the pixel to millimeter conversion factor specified in theTranscodingHintsor 0.3528 if any.voidsetFontFamilyResolver(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
-
-
-
-
Method Detail
-
displayError
public void displayError(java.lang.String message)
Displays the specified error message using theErrorHandler.- Parameters:
message- the message to display
-
displayError
public void displayError(java.lang.Exception e)
Displays the specified error using theErrorHandler.- Specified by:
displayErrorin interfaceorg.apache.batik.bridge.UserAgent- Parameters:
e- the exception to display
-
displayMessage
public void displayMessage(java.lang.String message)
Displays the specified message using theErrorHandler.- Specified by:
displayMessagein interfaceorg.apache.batik.bridge.UserAgent- Parameters:
message- the message to display
-
getPixelUnitToMillimeter
public float getPixelUnitToMillimeter()
Returns the pixel to millimeter conversion factor specified in theTranscodingHintsor 0.3528 if any.- Specified by:
getPixelUnitToMillimeterin interfaceorg.apache.batik.bridge.UserAgent- Returns:
- the pixel unit to millimeter factor
-
getMedia
public java.lang.String getMedia()
Get the media for this transcoder. Which is always print.- Specified by:
getMediain interfaceorg.apache.batik.bridge.UserAgent- Returns:
- PDF media is "print"
-
setFontFamilyResolver
public void setFontFamilyResolver(FOPFontFamilyResolver resolver)
-
getFontFamilyResolver
public org.apache.batik.bridge.FontFamilyResolver getFontFamilyResolver()
- Specified by:
getFontFamilyResolverin interfaceorg.apache.batik.bridge.UserAgent- Overrides:
getFontFamilyResolverin classorg.apache.batik.bridge.UserAgentAdapter
-
-