Class SVGUserAgent

java.lang.Object
org.apache.batik.bridge.UserAgentAdapter
org.apache.fop.svg.SimpleSVGUserAgent
org.apache.fop.svg.SVGUserAgent
All Implemented Interfaces:
org.apache.batik.bridge.UserAgent

public class SVGUserAgent extends SimpleSVGUserAgent
The SVG user agent. This is an implementation of the Batik SVG user agent.
  • Constructor Details

    • SVGUserAgent

      public SVGUserAgent(FOUserAgent foUserAgent, org.apache.batik.bridge.FontFamilyResolver fontFamilyResolver, AffineTransform at)
      Creates a new SVGUserAgent.
      Parameters:
      foUserAgent - the FO user agent to associate with this SVG user agent
      fontFamilyResolver - the font family resolver
      at - the current transform
    • SVGUserAgent

      public SVGUserAgent(FOUserAgent foUserAgent, org.apache.batik.bridge.FontFamilyResolver fontFamilyResolver)
      Creates a new SVGUserAgent.
      Parameters:
      foUserAgent - the FO user agent to associate with this SVG user agent
  • Method Details

    • getLastException

      public Exception getLastException()
      Returns the last exception sent to the displayError(Exception) method.
      Returns:
      the last exception or null if no exception occurred
    • displayError

      public void displayError(String message)
      Displays an error message.
      Overrides:
      displayError in class org.apache.batik.bridge.UserAgentAdapter
      Parameters:
      message - the message to display
    • displayError

      public void displayError(Exception ex)
      Displays an error resulting from the specified Exception.
      Specified by:
      displayError in interface org.apache.batik.bridge.UserAgent
      Overrides:
      displayError in class org.apache.batik.bridge.UserAgentAdapter
      Parameters:
      ex - the exception 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.
      Specified by:
      displayMessage in interface org.apache.batik.bridge.UserAgent
      Overrides:
      displayMessage in class org.apache.batik.bridge.UserAgentAdapter
      Parameters:
      message - the message to display
    • showAlert

      public void showAlert(String message)
      Shows an alert dialog box.
      Specified by:
      showAlert in interface org.apache.batik.bridge.UserAgent
      Overrides:
      showAlert in class org.apache.batik.bridge.UserAgentAdapter
      Parameters:
      message - the message to display