|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.batik.bridge.UserAgentAdapter
|
+--org.apache.batik.transcoder.SVGAbstractTranscoder.SVGAbstractTranscoderUserAgent
A user agent implementation for PrintTranscoder.
| Field Summary | |
protected java.util.Vector |
scripts
Vector containing the allowed script types |
| Fields inherited from class org.apache.batik.bridge.UserAgentAdapter |
extensions, FEATURES |
| Constructor Summary | |
SVGAbstractTranscoder.SVGAbstractTranscoderUserAgent()
|
|
| Method Summary | |
protected void |
computeAllowedScripts()
Helper method. |
void |
displayError(java.lang.Exception e)
Displays the specified error using the ErrorHandler. |
void |
displayError(java.lang.String message)
Displays the specified error message using the ErrorHandler. |
void |
displayMessage(java.lang.String message)
Displays the specified message using the ErrorHandler. |
java.lang.String |
getAlternateStyleSheet()
Returns this user agent's alternate style-sheet title. |
java.lang.String |
getLanguages()
Returns the user language specified in the TranscodingHints or "en" (english) if any. |
java.lang.String |
getMedia()
Returns this user agent's CSS media. |
float |
getPixelUnitToMillimeter()
Returns the pixel to millimeter conversion factor specified in the TranscodingHints or 0.26458333 if not specified. |
ScriptSecurity |
getScriptSecurity(java.lang.String scriptType,
ParsedURL scriptPURL,
ParsedURL docPURL)
Returns the security settings for the given script type, script url and document url |
java.lang.String |
getUserStyleSheetURI()
Returns the user stylesheet specified in the TranscodingHints or null if any. |
java.awt.geom.Dimension2D |
getViewportSize()
Returns the default size of this user agent (400x400). |
java.lang.String |
getXMLParserClassName()
Returns the XML parser to use from the TranscodingHints. |
boolean |
isXMLParserValidating()
Returns true if the XML parser must be in validation mode, false otherwise. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Vector scripts
| Constructor Detail |
public SVGAbstractTranscoder.SVGAbstractTranscoderUserAgent()
| Method Detail |
public java.awt.geom.Dimension2D getViewportSize()
getViewportSize in class UserAgentAdapterpublic void displayError(java.lang.String message)
displayError in class UserAgentAdapterpublic void displayError(java.lang.Exception e)
displayError in class UserAgentAdapterpublic void displayMessage(java.lang.String message)
displayMessage in class UserAgentAdapterpublic float getPixelUnitToMillimeter()
getPixelUnitToMillimeter in class UserAgentAdapterpublic java.lang.String getLanguages()
getLanguages in class UserAgentAdapterpublic java.lang.String getMedia()
getMedia in class UserAgentAdapterpublic java.lang.String getAlternateStyleSheet()
getAlternateStyleSheet in class UserAgentAdapterpublic java.lang.String getUserStyleSheetURI()
getUserStyleSheetURI in class UserAgentAdapterorg.apache.batik.bridge.UserAgentpublic java.lang.String getXMLParserClassName()
getXMLParserClassName in class UserAgentAdapterpublic boolean isXMLParserValidating()
isXMLParserValidating in class UserAgentAdapter
public ScriptSecurity getScriptSecurity(java.lang.String scriptType,
ParsedURL scriptPURL,
ParsedURL docPURL)
getScriptSecurity in class UserAgentAdapterscriptType - type of script, as found in the
type attribute of the <script> element.scriptURL - url for the script, as defined in
the script's xlink:href attribute. If that
attribute was empty, then this parameter should
be nulldocURL - url for the document into which the
script was found.protected void computeAllowedScripts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||