org.apache.batik.transcoder.image
Class ImageTranscoder.ImageTranscoderUserAgent

java.lang.Object
  |
  +--org.apache.batik.transcoder.image.ImageTranscoder.ImageTranscoderUserAgent
All Implemented Interfaces:
UserAgent
Enclosing class:
ImageTranscoder

protected class ImageTranscoder.ImageTranscoderUserAgent
extends java.lang.Object
implements UserAgent

A user agent implementation for ImageTranscoder.


Field Summary
protected  java.util.Set extensions
           
 
Constructor Summary
protected ImageTranscoder.ImageTranscoderUserAgent()
           
 
Method Summary
 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.awt.Point getClientAreaLocationOnScreen()
          Unsupported operation.
 EventDispatcher getEventDispatcher()
          Unsupported operation.
 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 getPixelToMM()
          Returns the pixel to millimeter conversion factor specified in the TranscodingHints or 0.3528 if any.
 java.awt.geom.AffineTransform getTransform()
          Unsupported operation.
 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 TranscodingGetHints().
 void handleElement(Element elt, java.lang.Object data)
          Notifies the UserAgent that the input element has been found in the document.
 boolean hasFeature(java.lang.String s)
          Tells whether the given feature is supported by this user agent.
 boolean isXMLParserValidating()
          Returns true if the XML parser must be in validation mode, false otherwise.
 void openLink(SVGAElement elt)
          Unsupported operation.
 void registerExtension(BridgeExtension ext)
          Lets the bridge tell the user agent that the following ex tension is supported by the bridge.
 void runThread(java.lang.Thread t)
          Unsupported operation.
 void setSVGCursor(java.awt.Cursor cursor)
          Unsupported operation.
 boolean supportExtension(java.lang.String s)
          Tells whether the given extension is supported by this user agent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extensions

protected java.util.Set extensions
Constructor Detail

ImageTranscoder.ImageTranscoderUserAgent

protected ImageTranscoder.ImageTranscoderUserAgent()
Method Detail

getViewportSize

public java.awt.geom.Dimension2D getViewportSize()
Returns the default size of this user agent (400x400).
Specified by:
getViewportSize in interface UserAgent

displayError

public void displayError(java.lang.String message)
Displays the specified error message using the ErrorHandler.

displayError

public void displayError(java.lang.Exception e)
Displays the specified error using the ErrorHandler.
Specified by:
displayError in interface UserAgent

displayMessage

public void displayMessage(java.lang.String message)
Displays the specified message using the ErrorHandler.
Specified by:
displayMessage in interface UserAgent

getPixelToMM

public float getPixelToMM()
Returns the pixel to millimeter conversion factor specified in the TranscodingHints or 0.3528 if any.
Specified by:
getPixelToMM in interface UserAgent

getLanguages

public java.lang.String getLanguages()
Returns the user language specified in the TranscodingHints or "en" (english) if any.
Specified by:
getLanguages in interface UserAgent

getUserStyleSheetURI

public java.lang.String getUserStyleSheetURI()
Returns the user stylesheet specified in the TranscodingHints or null if any.
Specified by:
getUserStyleSheetURI in interface UserAgent
Following copied from interface: org.apache.batik.bridge.UserAgent
Returns:
null if no user style sheet was specified.

getXMLParserClassName

public java.lang.String getXMLParserClassName()
Returns the XML parser to use from the TranscodingGetHints().
Specified by:
getXMLParserClassName in interface UserAgent

isXMLParserValidating

public boolean isXMLParserValidating()
Returns true if the XML parser must be in validation mode, false otherwise.
Specified by:
isXMLParserValidating in interface UserAgent

getMedia

public java.lang.String getMedia()
Returns this user agent's CSS media.
Specified by:
getMedia in interface UserAgent

getEventDispatcher

public EventDispatcher getEventDispatcher()
Unsupported operation.
Specified by:
getEventDispatcher in interface UserAgent

openLink

public void openLink(SVGAElement elt)
Unsupported operation.
Specified by:
openLink in interface UserAgent
Following copied from interface: org.apache.batik.bridge.UserAgent
Parameters:
elt - The activated link element.

setSVGCursor

public void setSVGCursor(java.awt.Cursor cursor)
Unsupported operation.
Specified by:
setSVGCursor in interface UserAgent
Following copied from interface: org.apache.batik.bridge.UserAgent
Parameters:
cursor - the new cursor

runThread

public void runThread(java.lang.Thread t)
Unsupported operation.

getTransform

public java.awt.geom.AffineTransform getTransform()
Unsupported operation.
Specified by:
getTransform in interface UserAgent

getClientAreaLocationOnScreen

public java.awt.Point getClientAreaLocationOnScreen()
Unsupported operation.
Specified by:
getClientAreaLocationOnScreen in interface UserAgent

hasFeature

public boolean hasFeature(java.lang.String s)
Tells whether the given feature is supported by this user agent.
Specified by:
hasFeature in interface UserAgent

supportExtension

public boolean supportExtension(java.lang.String s)
Tells whether the given extension is supported by this user agent.
Specified by:
supportExtension in interface UserAgent

registerExtension

public void registerExtension(BridgeExtension ext)
Lets the bridge tell the user agent that the following ex tension is supported by the bridge.
Specified by:
registerExtension in interface UserAgent

handleElement

public void handleElement(Element elt,
                          java.lang.Object data)
Notifies the UserAgent that the input element has been found in the document. This is sometimes called, for example, to handle <a> or <title> elements in a UserAgent-dependant way.
Specified by:
handleElement in interface UserAgent


Copyright © 2001 Apache Software Foundation. All Rights Reserved.