Class BreakPositionsList
- java.lang.Object
-
- org.pentaho.reporting.designer.core.util.BreakPositionsList
-
public final class BreakPositionsList extends Object
Creation-Date: 26.08.2007, 15:06:45- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description BreakPositionsList()
BreakPositionsList(int increment, boolean enableQuickLookup)
-
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()
int
findKeyPosition(long coordinate, boolean greater)
Tries to locate the key that matches the given key-parameter as closely as possible.long[]
getKeys()
Copys the list contents into a new array.long[]
getKeys(long[] retval)
long
getNext(long key)
org.pentaho.reporting.engine.classic.core.util.InstanceID
getOwner(long key)
long
getPrevious(long key)
Returns the entry that is either equal or less than this key.void
offset(long offset)
boolean
remove(long key)
void
removeAll(long[] cutArray, long cutSize)
Expects a sorted (ascending) list of cut-entries that should be removed.int
size()
-
-
-
Method Detail
-
clear
public void clear()
-
size
public int size()
-
getOwner
public org.pentaho.reporting.engine.classic.core.util.InstanceID getOwner(long key)
-
add
public boolean add(long key, org.pentaho.reporting.engine.classic.core.util.InstanceID owner)
-
remove
public boolean remove(long key)
-
getNext
public long getNext(long key)
-
getPrevious
public long getPrevious(long key)
Returns the entry that is either equal or less than this key.- Parameters:
key
-- Returns:
-
getKeys
public long[] getKeys()
Copys the list contents into a new array.- Returns:
- the list contents as array.
-
getKeys
public long[] getKeys(long[] retval)
-
findKeyPosition
public int findKeyPosition(long coordinate, boolean greater)
Tries to locate the key that matches the given key-parameter as closely as possible. If greater is set to true, then - if the coordinate is not contained in the list - the next coordinate is given, else the previous one is returned.- Parameters:
coordinate
-greater
-- Returns:
-
removeAll
public void removeAll(long[] cutArray, long cutSize)
Expects a sorted (ascending) list of cut-entries that should be removed. You will run into troubles if the list is not sorted.- Parameters:
cutArray
-
-
offset
public void offset(long offset)
-
-