Class GraphicsSupport
java.lang.Object
net.sourceforge.jeuclid.elements.support.GraphicsSupport
This class contains helper functions for graphical calculations.
- Version:
- $Revision: 86b5e673f9b8 $
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
MIN_LINEWIDTH
public static final float MIN_LINEWIDTHMinimum line width.- See Also:
-
-
Method Details
-
getFontsizeInPoint
Gets the size of the actual font used (including scriptsizemultiplier).- Parameters:
context- Layout context to use.- Returns:
- size of the current font.
-
lineWidth
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
-