|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AccordionDrawer.BinaryTree
A class which implements a quadtree This class is a tree of GridCells; each GridCell has up to 4 children.
Field Summary | |
static int |
depthAdd
|
static int[][] |
gridSize
|
BinaryGridCell |
rootCell
|
static int |
totalDepth
|
Constructor Summary | |
BinaryTree(AccordionDrawer theowner)
Constructor. |
Method Summary | |
GridCell |
getChildAt(BinaryGridCell cell,
int ddepth,
int x,
int y)
Gets a child at a specified x, y, depth location. |
GridCell |
getGridCell(int level,
int row,
int col)
Returns the GridCell at the specified row, column and level. |
static int |
getGridSize(int xy,
int level)
|
AccordionDrawer |
getOwner()
|
void |
init(int depth,
int row,
int depthAdd)
Initializes a few variables. |
GridCell |
makeChildAt(BinaryGridCell cell,
int ddepth,
int x,
int y)
Like getChildAt, but makes new cells whenever necessary. |
GridCell |
putChildAt(BinaryGridCell cell,
int ddepth,
int x,
int y,
GridCell insertCell)
Like makeChildAt, but the instead of creating a new cell at the specified location, puts the specified cell there. |
static void |
setGridSize(int xy,
int level,
int is)
|
void |
setRootCell(BinaryGridCell g)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public BinaryGridCell rootCell
public static int totalDepth
public static int depthAdd
public static int[][] gridSize
Constructor Detail |
public BinaryTree(AccordionDrawer theowner)
Method Detail |
public void init(int depth, int row, int depthAdd)
public AccordionDrawer getOwner()
public void setRootCell(BinaryGridCell g)
public GridCell getGridCell(int level, int row, int col)
public GridCell getChildAt(BinaryGridCell cell, int ddepth, int x, int y)
public GridCell makeChildAt(BinaryGridCell cell, int ddepth, int x, int y)
public GridCell putChildAt(BinaryGridCell cell, int ddepth, int x, int y, GridCell insertCell)
public static int getGridSize(int xy, int level)
public static void setGridSize(int xy, int level, int is)
is
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |