Class PageScale


  • public final class PageScale
    extends java.lang.Object
    This class provides utility methods to parse the 'fox:scale' extension attribute.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.apache.xmlgraphics.util.QName EXT_PAGE_SCALE
      The extension 'scale' attribute for the simple-page-master element.
      private static java.util.regex.Pattern WHITESPACE_PATTERN  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private PageScale()
      Utility classes should not have a public or default constructor
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.geom.Point2D getScale​(java.lang.String scale)
      Compute scale parameters from given fox:scale attribute which has the format: scaleX [scaleY] If scaleY is not defined, it equals scaleX.
      • Methods inherited from class java.lang.Object

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

      • EXT_PAGE_SCALE

        public static final org.apache.xmlgraphics.util.QName EXT_PAGE_SCALE
        The extension 'scale' attribute for the simple-page-master element.
      • WHITESPACE_PATTERN

        private static final java.util.regex.Pattern WHITESPACE_PATTERN
    • Constructor Detail

      • PageScale

        private PageScale()
        Utility classes should not have a public or default constructor
    • Method Detail

      • getScale

        public static java.awt.geom.Point2D getScale​(java.lang.String scale)
        Compute scale parameters from given fox:scale attribute which has the format: scaleX [scaleY] If scaleY is not defined, it equals scaleX.
        Parameters:
        scale - scale attribute, input format: scaleX [scaleY]
        Returns:
        the pair of (sx, sy) values