Class BatikUtil


  • public final class BatikUtil
    extends java.lang.Object
    Batik helper class with static methods.
    Since:
    0.3
    Author:
    Erich Schubert
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BatikUtil()
      Private constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double[] getRelativeCoordinates​(org.w3c.dom.events.Event evt, org.w3c.dom.Element reference)
      Get the relative coordinates of a point within the coordinate system of a particular SVG Element.
      static boolean hasFOPInstalled()
      Test whether FOP were installed (for PDF, PS and EPS output support).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BatikUtil

        private BatikUtil()
        Private constructor. Static methods only.
    • Method Detail

      • getRelativeCoordinates

        public static double[] getRelativeCoordinates​(org.w3c.dom.events.Event evt,
                                                      org.w3c.dom.Element reference)
        Get the relative coordinates of a point within the coordinate system of a particular SVG Element.
        Parameters:
        evt - Event, needs to be a DOMMouseEvent
        reference - SVG Element the coordinate system is used of
        Returns:
        Array containing the X and Y values
      • hasFOPInstalled

        public static boolean hasFOPInstalled()
        Test whether FOP were installed (for PDF, PS and EPS output support).
        Returns:
        true when FOP is available.