lt.monarch.chart.chart2D
Class IndexedClipList

java.lang.Object
  extended by lt.monarch.chart.chart2D.IndexedClipList

Deprecated.

@Deprecated
public class IndexedClipList
extends java.lang.Object

The IndexedClipList class implements an unbounded array of clips. It contains clips that can be accessed using an integer index.


Constructor Summary
Constructor and Description
IndexedClipList()
          Deprecated.  
 
Method Summary
Modifier and Type Method and Description
 Rectangle2D getClipBounds(int from, int to)
          Deprecated. Returns the smallest Rectangle2D containing all clips in the specified range.
 int getFirstIndex()
          Deprecated. Returns first clip list index.
 int getLastIndex()
          Deprecated. Returns last index of the clip list.
 void insertIndexes(int from, int to)
          Deprecated. Inserts new empty elements into clip list at specified index.
 void removeIndexes(int from, int to)
          Deprecated. Removes all clips in a specified range.
 void reset()
          Deprecated. Removes all clips from the clip list.
 void setClip(int i, Rectangle2D r)
          Deprecated. Sets a clip at the specified list position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedClipList

public IndexedClipList()
Deprecated. 
Method Detail

reset

public void reset()
Deprecated. 
Removes all clips from the clip list.


getFirstIndex

public int getFirstIndex()
Deprecated. 
Returns first clip list index.

Returns:
first clip list index

getLastIndex

public int getLastIndex()
Deprecated. 
Returns last index of the clip list.

Returns:
last index of the clip list

getClipBounds

public Rectangle2D getClipBounds(int from,
                                 int to)
Deprecated. 
Returns the smallest Rectangle2D containing all clips in the specified range.

Parameters:
from - start index of the clips range in the list
to - end index of the clips range in the list
Returns:
the smallest Rectangle containing all clips in the specified range

removeIndexes

public void removeIndexes(int from,
                          int to)
Deprecated. 
Removes all clips in a specified range. Range beginning index must be less than end index.

Parameters:
from - range beginning index
to - range end index

insertIndexes

public void insertIndexes(int from,
                          int to)
Deprecated. 
Inserts new empty elements into clip list at specified index. Range start index must be less than the end index.

Parameters:
from - index of first element from insertion range
to - index of the last element from insertion range

setClip

public void setClip(int i,
                    Rectangle2D r)
Deprecated. 
Sets a clip at the specified list position. If there is already a clip in the list at the specified position then the union of the new clip rectangle and the old one is set.

Parameters:
i - the position in the list to set clip at
r - the clip