org.diylc.presenter
Class CalcUtils

java.lang.Object
  extended by org.diylc.presenter.CalcUtils

public class CalcUtils
extends java.lang.Object


Constructor Summary
CalcUtils()
           
 
Method Summary
static int roundToGrid(int x, Size gridSpacing)
          Rounds the number to the closest grid line.
static void snapPointToGrid(java.awt.Point point, Size gridSpacing)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalcUtils

public CalcUtils()
Method Detail

roundToGrid

public static int roundToGrid(int x,
                              Size gridSpacing)
Rounds the number to the closest grid line.

Parameters:
x -
Returns:

snapPointToGrid

public static void snapPointToGrid(java.awt.Point point,
                                   Size gridSpacing)