|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.miv.pherd.ntree.util.CellLevelData
public class CellLevelData
Cell data item that put maintain the leveling information.
A cell data register is peer cell in an object nammed NTreeLevels so that groups of cells of the same depth are in a set nammed a level. Each time something changes in the graph, the levels are maintained automatically.
| Field Summary | |
|---|---|
protected int |
depth
|
protected NTreeLevels |
levels
|
protected Cell |
myCell
|
| Constructor Summary | |
|---|---|
CellLevelData(NTreeLevels levels)
New cell-level data that will register in the given levels. |
|
| Method Summary | |
|---|---|
protected int |
getDepth()
The depth of this data. |
CellData |
newCellData()
Factory method to create new cell data when a cell is subdivided. |
void |
recompute()
Recompute the data, since the cell contents changed. |
void |
setCell(Cell cell)
Set the parent cell of this data. |
protected void |
setDepth(int depth)
Change the depth of this data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int depth
protected NTreeLevels levels
protected Cell myCell
| Constructor Detail |
|---|
public CellLevelData(NTreeLevels levels)
levels - The levels.| Method Detail |
|---|
protected int getDepth()
protected void setDepth(int depth)
depth - The new depth.public CellData newCellData()
CellData
newCellData in interface CellDatapublic void recompute()
CellData
recompute in interface CellDatapublic void setCell(Cell cell)
CellData
setCell in interface CellDatacell - The tied cell.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||