Class GraphicsSupport
- java.lang.Object
-
- net.sourceforge.jeuclid.elements.support.GraphicsSupport
-
public final class GraphicsSupport extends java.lang.ObjectThis class contains helper functions for graphical calculations.- Version:
- $Revision: 86b5e673f9b8 $
-
-
Field Summary
Fields Modifier and Type Field Description static floatMIN_LINEWIDTHMinimum line width.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static floatgetFontsizeInPoint(LayoutContext context)Gets the size of the actual font used (including scriptsizemultiplier).static floatlineWidth(LayoutContext context)Retrieve the width of a line that would be 1pt if unscaled.
-
-
-
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
-
-