|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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 List |
scripts
Vector containing the allowed script types |
Fields inherited from class org.apache.batik.bridge.UserAgentAdapter |
ctx, extensions, FEATURES |
Constructor Summary | |
SVGAbstractTranscoder.SVGAbstractTranscoderUserAgent()
|
Method Summary | |
protected void |
computeAllowedScripts()
Helper method. |
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 |
getAlternateStyleSheet()
Returns this user agent's alternate style-sheet title. |
String |
getDefaultFontFamily()
Returns the default font family. |
String |
getLanguages()
Returns the user language specified in the TranscodingHints or "en" (english) if any. |
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(String scriptType,
ParsedURL scriptPURL,
ParsedURL docPURL)
Returns the security settings for the given script type, script url and document url |
AffineTransform |
getTransform()
Return the rendering transform. |
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()
Returns true if the XML parser must be in validation mode, false otherwise. |
void |
setTransform(AffineTransform at)
Return the rendering transform. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected List scripts
Constructor Detail |
public SVGAbstractTranscoder.SVGAbstractTranscoderUserAgent()
Method Detail |
public AffineTransform getTransform()
getTransform
in interface UserAgent
getTransform
in class UserAgentAdapter
public void setTransform(AffineTransform at)
setTransform
in interface UserAgent
setTransform
in class UserAgentAdapter
public Dimension2D getViewportSize()
getViewportSize
in interface UserAgent
getViewportSize
in class UserAgentAdapter
public void displayError(String message)
displayError
in class UserAgentAdapter
public void displayError(Exception e)
displayError
in interface UserAgent
displayError
in class UserAgentAdapter
public void displayMessage(String message)
displayMessage
in interface UserAgent
displayMessage
in class UserAgentAdapter
public float getPixelUnitToMillimeter()
getPixelUnitToMillimeter
in interface UserAgent
getPixelUnitToMillimeter
in class UserAgentAdapter
public String getLanguages()
getLanguages
in interface UserAgent
getLanguages
in class UserAgentAdapter
public String getMedia()
getMedia
in interface UserAgent
getMedia
in class UserAgentAdapter
public String getDefaultFontFamily()
getDefaultFontFamily
in interface UserAgent
getDefaultFontFamily
in class UserAgentAdapter
public String getAlternateStyleSheet()
getAlternateStyleSheet
in interface UserAgent
getAlternateStyleSheet
in class UserAgentAdapter
public String getUserStyleSheetURI()
getUserStyleSheetURI
in interface UserAgent
getUserStyleSheetURI
in class UserAgentAdapter
public String getXMLParserClassName()
getXMLParserClassName
in interface UserAgent
getXMLParserClassName
in class UserAgentAdapter
public boolean isXMLParserValidating()
isXMLParserValidating
in interface UserAgent
isXMLParserValidating
in class UserAgentAdapter
public ScriptSecurity getScriptSecurity(String scriptType, ParsedURL scriptPURL, ParsedURL docPURL)
getScriptSecurity
in interface UserAgent
getScriptSecurity
in class UserAgentAdapter
scriptType
- type of script, as found in the
type attribute of the <script> element.scriptPURL
- url for the script, as defined in
the script's xlink:href attribute. If that
attribute was empty, then this parameter should
be nulldocPURL
- url for the document into which the
script was found.protected void computeAllowedScripts()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |