org.apache.fop.svg
Class SVGUserAgent

java.lang.Object
  extended by org.apache.batik.bridge.UserAgentAdapter
      extended by org.apache.fop.svg.SVGUserAgent
All Implemented Interfaces:
UserAgent
Direct Known Subclasses:
AWTRenderer.MUserAgent

public class SVGUserAgent
extends UserAgentAdapter


Field Summary
 
Fields inherited from class org.apache.batik.bridge.UserAgentAdapter
ctx, extensions, FEATURES
 
Constructor Summary
SVGUserAgent(AffineTransform at)
          Creates a new SVGUserAgent.
 
Method Summary
 void displayError(Exception ex)
          Displays an error resulting from the specified Exception.
 void displayError(String message)
          Displays an error message.
 void displayMessage(String message)
          Displays a message in the User Agent interface.
 String getLanguages()
          Returns the language settings.
 String getMedia()
           
 float getPixelToMM()
          Returns a customized the pixel to mm factor.
 float getPixelUnitToMillimeter()
           
 AffineTransform getTransform()
           
 String getUserStyleSheetURI()
          Returns the user stylesheet uri.
 Dimension2D getViewportSize()
           
 String getXMLParserClassName()
          Returns the class name of the XML parser.
 boolean isXMLParserValidating()
           
 void setLogger(org.apache.avalon.framework.logger.Logger logger)
           
 
Methods inherited from class org.apache.batik.bridge.UserAgentAdapter
addStdFeatures, checkLoadExternalResource, checkLoadScript, deselectAll, getAlternateStyleSheet, getBolderFontWeight, getBrokenLinkDocument, getClientAreaLocationOnScreen, getDefaultFontFamily, getEventDispatcher, getExternalResourceSecurity, getLighterFontWeight, getMediumFontSize, getScriptSecurity, getStandardBolderFontWeight, getStandardLighterFontWeight, 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

SVGUserAgent

public SVGUserAgent(AffineTransform at)
Creates a new SVGUserAgent.

Method Detail

setLogger

public void setLogger(org.apache.avalon.framework.logger.Logger logger)

displayError

public void displayError(String message)
Displays an error message.

Overrides:
displayError in class UserAgentAdapter

displayError

public void displayError(Exception ex)
Displays an error resulting from the specified Exception.

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

displayMessage

public void displayMessage(String message)
Displays a message in the User Agent interface. The given message is typically displayed in a status bar.

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

getPixelToMM

public float getPixelToMM()
Returns a customized the pixel to mm factor.

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

getPixelUnitToMillimeter

public float getPixelUnitToMillimeter()
Specified by:
getPixelUnitToMillimeter in interface UserAgent
Overrides:
getPixelUnitToMillimeter in class UserAgentAdapter

getLanguages

public String getLanguages()
Returns the language settings.

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 uri.

Specified by:
getUserStyleSheetURI in interface UserAgent
Overrides:
getUserStyleSheetURI in class UserAgentAdapter
Returns:
null if no user style sheet was specified.

getXMLParserClassName

public String getXMLParserClassName()
Returns the class name of the XML parser.

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

getTransform

public AffineTransform getTransform()
Specified by:
getTransform in interface UserAgent
Overrides:
getTransform in class UserAgentAdapter

getViewportSize

public Dimension2D getViewportSize()
Specified by:
getViewportSize in interface UserAgent
Overrides:
getViewportSize in class UserAgentAdapter

isXMLParserValidating

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


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