cz.cmc.tcgui
Class TCGraphSelectionModel.TCHierarchyHeapEntry

java.lang.Object
  extended bycz.cmc.tcgui.TCGraphSelectionModel.TCHierarchyHeapEntry
Enclosing class:
TCGraphSelectionModel

protected class TCGraphSelectionModel.TCHierarchyHeapEntry
extends Object

Structure containing reference to the first cell of a partial selection object type and cell count of such type


Field Summary
protected  int count
          Member count of this hierarchy
protected  int index
          Index of the location at the heap
 
Constructor Summary
TCGraphSelectionModel.TCHierarchyHeapEntry()
          Constructs a new TCHierarchyHeapEntry with zero index and member count
TCGraphSelectionModel.TCHierarchyHeapEntry(int i)
          Constructs a new TCHierarchyHeapEntry with zero member count
TCGraphSelectionModel.TCHierarchyHeapEntry(int i, int c)
          Constructs a new TCHierarchyHeapEntry
 
Method Summary
 int getCount()
           
 int getIndex()
           
 void changeCount(int dc)
          Changes member count of this hierarchy entry relatively
 void changeIndex(int di)
          Changes index of this hierarchy entry relatively
 void setCount(int c)
          Sets member count of this hierarchy entry
 void setIndex(int i)
          Sets index of this hierarchy entry
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

index

protected int index
Index of the location at the heap


count

protected int count
Member count of this hierarchy

Constructor Detail

TCGraphSelectionModel.TCHierarchyHeapEntry

public TCGraphSelectionModel.TCHierarchyHeapEntry(int i,
                                                  int c)
Constructs a new TCHierarchyHeapEntry

Parameters:
i - index of the location at the heap
c - member count of this hierarchy

TCGraphSelectionModel.TCHierarchyHeapEntry

public TCGraphSelectionModel.TCHierarchyHeapEntry(int i)
Constructs a new TCHierarchyHeapEntry with zero member count

Parameters:
i - index of the location at the heap

TCGraphSelectionModel.TCHierarchyHeapEntry

public TCGraphSelectionModel.TCHierarchyHeapEntry()
Constructs a new TCHierarchyHeapEntry with zero index and member count

Method Detail

getIndex

public int getIndex()
Returns:
index of this hierarchy entry

getCount

public int getCount()
Returns:
member count of this hierarchy entry

setIndex

public void setIndex(int i)
Sets index of this hierarchy entry

Parameters:
i - index to be set

setCount

public void setCount(int c)
Sets member count of this hierarchy entry

Parameters:
c - count to be set

changeIndex

public void changeIndex(int di)
Changes index of this hierarchy entry relatively

Parameters:
di - change to current index

changeCount

public void changeCount(int dc)
Changes member count of this hierarchy entry relatively

Parameters:
dc - change to current count

toString

public String toString()