|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AccordionDrawer.GridCell
A class representing a cell in the quad tree data structure A GridCell can have up to four (4) kid cells and may have a parent cell
AccordionDrawer
,
GridCell
Field Summary | |
float |
area
|
AccordionDrawer |
drawer
|
int |
drewMarkedAttachedFrame
|
int |
objmax
|
int |
objmin
|
int[] |
rowcol
rowcol[0] = column, rowcol[1] = row. |
Constructor Summary | |
GridCell(AccordionDrawer thedrawer,
int thelevel,
int therow,
int thecol,
boolean isQuad)
|
Method Summary | |
abstract void |
addGeom(CellGeom g)
|
abstract boolean |
bigEnough()
|
abstract int |
compareTo(java.lang.Object o)
|
void |
computePlaceThisFrame()
Computes min[], max[], and splitPos, the minimum, maximum and split point coordinates for this GridCell in absolute window coordinates. |
abstract GridCell |
createCell(int level,
int row,
int col,
boolean isQuad)
|
abstract void |
draw()
Draws this GridCell. |
void |
drawAttachedObjects()
|
abstract void |
drawDescend()
|
abstract boolean |
equals(java.lang.Object o)
|
float |
getArea(boolean maybeCompute)
|
int |
getAreaPix(boolean maybeCompute)
|
CellGeom |
getCellGeomDummy()
|
int |
getDrewMarkedAttachedFrame()
|
java.util.ArrayList |
getGeoms()
|
int |
getGeomsSize()
|
int |
getLevel()
|
float |
getMax(int xy,
boolean maybeCompute)
|
GridCell |
getMaxLine(int xy)
|
int |
getMaxPix(int xy,
boolean maybeCompute)
|
float |
getMin(int xy,
boolean maybeCompute)
|
GridCell |
getMinLine(int xy)
|
int |
getMinPix(int xy,
boolean maybeCompute)
|
int |
getObjMax()
|
int |
getObjMin()
|
abstract GridCell |
getParent()
|
float |
getSize(int xy,
boolean maybeCompute)
|
int |
getSizeInPix(int xy,
boolean maybeCompute)
|
int |
getSplitPix(int xy,
boolean maybeCompute)
|
float |
getSplitPos(int xy,
boolean maybeCompute)
|
static void |
incrementCountBBoxDraw()
|
boolean |
isQuadTree()
|
java.util.ArrayList |
pickAttached(int x,
int y)
Computes an ArrayList of features (CellGeom's, like TreeNode or TreeEdge) that are "picked", i.e., are around (x,y) in screen coordinates and are attached to this GridCell Recurses down the quadtree hierarchy, starting at this GridCell, until at least one picked object is found or the bottom of the hierarchy is reached. |
GridCell |
pickCell(int x,
int y)
Computes the lowest level visible GridCell picked (selected) by a click at (x,y) |
abstract GridCell |
pickDescend(int x,
int y)
|
abstract void |
possiblyEnqueue()
|
java.lang.String |
print(int indent)
|
void |
removeGeom(CellGeom g)
|
void |
setCellGeomDummy(CellGeom geom)
|
abstract void |
setChild(GridCell newChild,
int row,
int col)
|
void |
setDrawBackground(boolean on)
|
void |
setDrewMarkedAttachedFrame(int i)
|
void |
setObjMax(int n)
|
void |
setObjMin(int n)
|
abstract void |
setParent(GridCell p)
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int objmin
public int objmax
public float area
public int[] rowcol
public int drewMarkedAttachedFrame
public AccordionDrawer drawer
Constructor Detail |
public GridCell(AccordionDrawer thedrawer, int thelevel, int therow, int thecol, boolean isQuad)
Method Detail |
public CellGeom getCellGeomDummy()
public abstract GridCell createCell(int level, int row, int col, boolean isQuad)
public static void incrementCountBBoxDraw()
public abstract void setChild(GridCell newChild, int row, int col)
public abstract GridCell getParent()
public abstract void setParent(GridCell p)
public void setDrawBackground(boolean on)
public void computePlaceThisFrame()
public float getMin(int xy, boolean maybeCompute)
public float getMax(int xy, boolean maybeCompute)
public float getSize(int xy, boolean maybeCompute)
public int getMaxPix(int xy, boolean maybeCompute)
public int getMinPix(int xy, boolean maybeCompute)
public int getSizeInPix(int xy, boolean maybeCompute)
public float getSplitPos(int xy, boolean maybeCompute)
public int getSplitPix(int xy, boolean maybeCompute)
public int getObjMin()
public int getObjMax()
public void setObjMin(int n)
public void setObjMax(int n)
public float getArea(boolean maybeCompute)
public int getAreaPix(boolean maybeCompute)
public GridCell getMinLine(int xy)
public GridCell getMaxLine(int xy)
public abstract void draw()
public abstract void possiblyEnqueue()
public abstract boolean bigEnough()
public java.util.ArrayList pickAttached(int x, int y)
public abstract void drawDescend()
public GridCell pickCell(int x, int y)
public abstract GridCell pickDescend(int x, int y)
public void drawAttachedObjects()
public abstract void addGeom(CellGeom g)
public void removeGeom(CellGeom g)
public java.util.ArrayList getGeoms()
public int getGeomsSize()
public abstract int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public abstract boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String print(int indent)
public boolean isQuadTree()
public int getDrewMarkedAttachedFrame()
public void setDrewMarkedAttachedFrame(int i)
i
- public int getLevel()
public void setCellGeomDummy(CellGeom geom)
geom
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |