net.sourceforge.jeuclid.elements.support
Class GraphicsSupport

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

public final class GraphicsSupport
extends Object

This class contains helper functions for graphical calculations.

Version:
$Revision: 86b5e673f9b8 $

Field Summary
static float MIN_LINEWIDTH
          Minimum line width.
 
Method Summary
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


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.