org.apache.fop.svg
Class SVGUserAgent
UserAgentAdapter
org.apache.fop.svg.SVGUserAgent
public class SVGUserAgent
extends UserAgentAdapter
The SVG user agent.
This is an implementation of the batik svg user agent
for handling errors and getting user agent values.
SVGUserAgent(float pixelUnitToMM, AffineTransform at) - Creates a new SVGUserAgent.
|
SVGUserAgent
public SVGUserAgent(float pixelUnitToMM,
AffineTransform at)
Creates a new SVGUserAgent.
pixelUnitToMM
- the pixel to millimeter conversion factor
currently in effectat
- the current transform
displayError
public void displayError(Exception ex)
Displays an error resulting from the specified Exception.
ex
- the exception to display
displayError
public void displayError(String message)
Displays an error message.
message
- the message to display
displayMessage
public void displayMessage(String message)
Displays a message in the User Agent interface.
The given message is typically displayed in a status bar.
message
- the message to display
getLanguages
public String getLanguages()
Returns the language settings.
getLogger
protected final Log getLogger()
Returns the logger associated with this user agent.
getMedia
public String getMedia()
Returns the media type for this rendering.
- the media for fo documents is "print"
getPixelUnitToMillimeter
public float getPixelUnitToMillimeter()
Returns a customized the pixel to mm factor.
- the pixel unit to millimeter conversion factor
getTransform
public AffineTransform getTransform()
Get the transform of the svg document.
getUserStyleSheetURI
public String getUserStyleSheetURI()
Returns the user stylesheet uri.
- null if no user style sheet was specified.
getViewportSize
public Dimension2D getViewportSize()
Get the default viewport size for an svg document.
This returns a default value of 100x100.
- the default viewport size
getXMLParserClassName
public String getXMLParserClassName()
Returns the class name of the XML parser.
- the XML parser class name
isXMLParserValidating
public boolean isXMLParserValidating()
Is the XML parser validating.
- true if the xml parser is validating
showAlert
public void showAlert(String message)
Shows an alert dialog box.
message
- the message to display
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.