Class SnapToGridModel
- java.lang.Object
-
- org.pentaho.reporting.designer.core.editor.report.snapping.SnapToGridModel
-
- All Implemented Interfaces:
SnapPositionsModel
public class SnapToGridModel extends Object implements SnapPositionsModel
Todo: Document Me- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description SnapToGridModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getGridSize()
long
getNearestSnapPosition(long position, org.pentaho.reporting.engine.classic.core.util.InstanceID owner)
Computes the nearest snap-point.void
setGridSize(long gridSize)
-
-
-
Method Detail
-
getGridSize
public long getGridSize()
-
setGridSize
public void setGridSize(long gridSize)
-
getNearestSnapPosition
public long getNearestSnapPosition(long position, org.pentaho.reporting.engine.classic.core.util.InstanceID owner)
Computes the nearest snap-point.- Specified by:
getNearestSnapPosition
in interfaceSnapPositionsModel
- Parameters:
position
-- Returns:
-
-