|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.bridge.UserAgentAdapter
org.apache.fop.svg.SVGUserAgent
public class SVGUserAgent
The SVG user agent. This is an implementation of the batik svg user agent for handling errors and getting user agent values.
Field Summary |
---|
Fields inherited from class org.apache.batik.bridge.UserAgentAdapter |
---|
ctx, extensions, FEATURES |
Constructor Summary | |
---|---|
SVGUserAgent(float pixelUnitToMM,
java.awt.geom.AffineTransform at)
Creates a new SVGUserAgent. |
Method Summary | |
---|---|
void |
displayError(java.lang.Exception ex)
Displays an error resulting from the specified Exception. |
void |
displayError(java.lang.String message)
Displays an error message. |
void |
displayMessage(java.lang.String message)
Displays a message in the User Agent interface. |
java.lang.String |
getLanguages()
Returns the language settings. |
protected org.apache.commons.logging.Log |
getLogger()
Returns the logger associated with this user agent. |
java.lang.String |
getMedia()
Returns the media type for this rendering. |
float |
getPixelUnitToMillimeter()
Returns a customized the pixel to mm factor. |
java.awt.geom.AffineTransform |
getTransform()
Get the transform of the svg document. |
java.lang.String |
getUserStyleSheetURI()
Returns the user stylesheet uri. |
java.awt.geom.Dimension2D |
getViewportSize()
Get the default viewport size for an svg document. |
java.lang.String |
getXMLParserClassName()
Returns the class name of the XML parser. |
boolean |
isXMLParserValidating()
Is the XML parser validating. |
void |
showAlert(java.lang.String message)
Shows an alert dialog box. |
Methods inherited from class org.apache.batik.bridge.UserAgentAdapter |
---|
addStdFeatures, checkLoadExternalResource, checkLoadScript, deselectAll, getAlternateStyleSheet, getBolderFontWeight, getBrokenLinkDocument, getClientAreaLocationOnScreen, getDefaultFontFamily, getEventDispatcher, getExternalResourceSecurity, getLighterFontWeight, getMediumFontSize, getPixelToMM, getScriptSecurity, getStandardBolderFontWeight, getStandardLighterFontWeight, handleElement, hasFeature, openLink, registerExtension, runThread, setBridgeContext, setSVGCursor, setTextSelection, setTransform, showConfirm, showPrompt, showPrompt, supportExtension |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SVGUserAgent(float pixelUnitToMM, java.awt.geom.AffineTransform at)
pixelUnitToMM
- the pixel to millimeter conversion factor
currently in effectat
- the current transformMethod Detail |
---|
protected final org.apache.commons.logging.Log getLogger()
public void displayError(java.lang.String message)
displayError
in class org.apache.batik.bridge.UserAgentAdapter
message
- the message to displaypublic void displayError(java.lang.Exception ex)
displayError
in interface org.apache.batik.bridge.UserAgent
displayError
in class org.apache.batik.bridge.UserAgentAdapter
ex
- the exception to displaypublic void displayMessage(java.lang.String message)
displayMessage
in interface org.apache.batik.bridge.UserAgent
displayMessage
in class org.apache.batik.bridge.UserAgentAdapter
message
- the message to displaypublic void showAlert(java.lang.String message)
showAlert
in interface org.apache.batik.bridge.UserAgent
showAlert
in class org.apache.batik.bridge.UserAgentAdapter
message
- the message to displaypublic float getPixelUnitToMillimeter()
getPixelUnitToMillimeter
in interface org.apache.batik.bridge.UserAgent
getPixelUnitToMillimeter
in class org.apache.batik.bridge.UserAgentAdapter
public java.lang.String getLanguages()
getLanguages
in interface org.apache.batik.bridge.UserAgent
getLanguages
in class org.apache.batik.bridge.UserAgentAdapter
public java.lang.String getMedia()
getMedia
in interface org.apache.batik.bridge.UserAgent
getMedia
in class org.apache.batik.bridge.UserAgentAdapter
public java.lang.String getUserStyleSheetURI()
getUserStyleSheetURI
in interface org.apache.batik.bridge.UserAgent
getUserStyleSheetURI
in class org.apache.batik.bridge.UserAgentAdapter
public java.lang.String getXMLParserClassName()
getXMLParserClassName
in interface org.apache.batik.bridge.UserAgent
getXMLParserClassName
in class org.apache.batik.bridge.UserAgentAdapter
public boolean isXMLParserValidating()
isXMLParserValidating
in interface org.apache.batik.bridge.UserAgent
isXMLParserValidating
in class org.apache.batik.bridge.UserAgentAdapter
public java.awt.geom.AffineTransform getTransform()
getTransform
in interface org.apache.batik.bridge.UserAgent
getTransform
in class org.apache.batik.bridge.UserAgentAdapter
public java.awt.geom.Dimension2D getViewportSize()
getViewportSize
in interface org.apache.batik.bridge.UserAgent
getViewportSize
in class org.apache.batik.bridge.UserAgentAdapter
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |