Class GraphicsSupport

java.lang.Object
net.sourceforge.jeuclid.elements.support.GraphicsSupport

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

    • MIN_LINEWIDTH

      public static final float MIN_LINEWIDTH
      Minimum line width.
      See Also:
  • Method Details

    • 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