Class SnapToPositionModel

    • Constructor Detail

      • SnapToPositionModel

        public SnapToPositionModel()
    • 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 interface SnapPositionsModel
        Parameters:
        position -
        Returns: