Class GraphicsSupport


  • public final class GraphicsSupport
    extends java.lang.Object
    This class contains helper functions for graphical calculations.
    Version:
    $Revision: 86b5e673f9b8 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static float MIN_LINEWIDTH
      Minimum line width.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static float getFontsizeInPoint​(LayoutContext context)
      Gets the size of the actual font used (including scriptsizemultiplier).
      static float lineWidth​(LayoutContext context)
      Retrieve the width of a line that would be 1pt if unscaled.
      • Methods inherited from class java.lang.Object

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

      • MIN_LINEWIDTH

        public static final float MIN_LINEWIDTH
        Minimum line width.
        See Also:
        Constant Field Values
    • Method Detail

      • getFontsizeInPoint

        public static float getFontsizeInPoint​(LayoutContext context)
        Gets the size of the actual font used (including scriptsizemultiplier).
        Parameters:
        context - Layout context to use.
        Returns:
        size of the current font.
      • lineWidth

        public static float lineWidth​(LayoutContext context)
        Retrieve the width of a line that would be 1pt if unscaled.
        Parameters:
        context - Layout context to use.
        Returns:
        line width as float, at least MIN_LINEWIDTH