public class SnapToPositionModel extends Object implements SnapPositionsModel
Constructor and Description |
---|
SnapToPositionModel() |
Modifier and Type | Method and 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() |
public boolean add(long key, org.pentaho.reporting.engine.classic.core.util.InstanceID owner)
public void clear()
public long[] getKeys()
public org.pentaho.reporting.engine.classic.core.util.InstanceID getOwner(long key)
public int size()
public long getNearestSnapPosition(long position, org.pentaho.reporting.engine.classic.core.util.InstanceID owner)
getNearestSnapPosition
in interface SnapPositionsModel
position
- Copyright © 2017 Hitachi Vantara. All rights reserved.