Class SnapToPositionModel
- java.lang.Object
-
- org.pentaho.reporting.designer.core.editor.report.snapping.SnapToPositionModel
-
- All Implemented Interfaces:
SnapPositionsModel
public class SnapToPositionModel extends Object implements SnapPositionsModel
Todo: Document Me- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description SnapToPositionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(long key, org.pentaho.reporting.engine.classic.core.util.InstanceID owner)
void
clear()
long[]
getKeys()
long
getNearestSnapPosition(long position, org.pentaho.reporting.engine.classic.core.util.InstanceID owner)
Computes the nearest snap-point.org.pentaho.reporting.engine.classic.core.util.InstanceID
getOwner(long key)
int
size()
-
-
-
Method Detail
-
add
public boolean add(long key, org.pentaho.reporting.engine.classic.core.util.InstanceID owner)
-
clear
public void clear()
-
getKeys
public long[] getKeys()
-
getOwner
public org.pentaho.reporting.engine.classic.core.util.InstanceID getOwner(long key)
-
size
public int size()
-
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:
-
-