org.apache.fop.svg
Class PDFTranscoder.ImageTranscoderUserAgent

java.lang.Object
  extended by org.apache.batik.bridge.UserAgentAdapter
      extended by org.apache.fop.svg.PDFTranscoder.ImageTranscoderUserAgent
All Implemented Interfaces:
UserAgent
Enclosing class:
PDFTranscoder

protected class PDFTranscoder.ImageTranscoderUserAgent
extends UserAgentAdapter

A user agent implementation for ImageTranscoder.


Field Summary
 
Fields inherited from class org.apache.batik.bridge.UserAgentAdapter
ctx, extensions, FEATURES
 
Constructor Summary
protected PDFTranscoder.ImageTranscoderUserAgent()
           
 
Method Summary
 void displayError(Exception e)
          Displays the specified error using the ErrorHandler.
 void displayError(String message)
          Displays the specified error message using the ErrorHandler.
 void displayMessage(String message)
          Displays the specified message using the ErrorHandler.
 String getLanguages()
          Returns the user language specified in the TranscodingHints or "en" (english) if any.
 String getMedia()
           
 float getPixelToMM()
          Returns the pixel to millimeter conversion factor specified in the TranscodingHints or 0.3528 if any.
 String getUserStyleSheetURI()
          Returns the user stylesheet specified in the TranscodingHints or null if any.
 Dimension2D getViewportSize()
          Returns the default size of this user agent (400x400).
 String getXMLParserClassName()
          Returns the XML parser to use from the TranscodingHints.
 boolean isXMLParserValidating()
           
 
Methods inherited from class org.apache.batik.bridge.UserAgentAdapter
addStdFeatures, checkLoadExternalResource, checkLoadScript, deselectAll, getAlternateStyleSheet, getBolderFontWeight, getBrokenLinkDocument, getClientAreaLocationOnScreen, getDefaultFontFamily, getEventDispatcher, getExternalResourceSecurity, getLighterFontWeight, getMediumFontSize, getPixelUnitToMillimeter, getScriptSecurity, getStandardBolderFontWeight, getStandardLighterFontWeight, getTransform, handleElement, hasFeature, openLink, registerExtension, runThread, setBridgeContext, setSVGCursor, setTextSelection, setTransform, showAlert, showConfirm, showPrompt, showPrompt, supportExtension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFTranscoder.ImageTranscoderUserAgent

protected PDFTranscoder.ImageTranscoderUserAgent()
Method Detail

isXMLParserValidating

public boolean isXMLParserValidating()
Specified by:
isXMLParserValidating in interface UserAgent
Overrides:
isXMLParserValidating in class UserAgentAdapter

getViewportSize

public Dimension2D getViewportSize()
Returns the default size of this user agent (400x400).

Specified by:
getViewportSize in interface UserAgent
Overrides:
getViewportSize in class UserAgentAdapter

displayError

public void displayError(String message)
Displays the specified error message using the ErrorHandler.

Overrides:
displayError in class UserAgentAdapter

displayError

public void displayError(Exception e)
Displays the specified error using the ErrorHandler.

Specified by:
displayError in interface UserAgent
Overrides:
displayError in class UserAgentAdapter

displayMessage

public void displayMessage(String message)
Displays the specified message using the ErrorHandler.

Specified by:
displayMessage in interface UserAgent
Overrides:
displayMessage in class UserAgentAdapter

getPixelToMM

public float getPixelToMM()
Returns the pixel to millimeter conversion factor specified in the TranscodingHints or 0.3528 if any.

Specified by:
getPixelToMM in interface UserAgent
Overrides:
getPixelToMM in class UserAgentAdapter

getLanguages

public String getLanguages()
Returns the user language specified in the TranscodingHints or "en" (english) if any.

Specified by:
getLanguages in interface UserAgent
Overrides:
getLanguages in class UserAgentAdapter

getMedia

public String getMedia()
Specified by:
getMedia in interface UserAgent
Overrides:
getMedia in class UserAgentAdapter

getUserStyleSheetURI

public String getUserStyleSheetURI()
Returns the user stylesheet specified in the TranscodingHints or null if any.

Specified by:
getUserStyleSheetURI in interface UserAgent
Overrides:
getUserStyleSheetURI in class UserAgentAdapter

getXMLParserClassName

public String getXMLParserClassName()
Returns the XML parser to use from the TranscodingHints.

Specified by:
getXMLParserClassName in interface UserAgent
Overrides:
getXMLParserClassName in class UserAgentAdapter


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.