AccordionDrawer
Class QuadGridCell

java.lang.Object
  |
  +--AccordionDrawer.GridCell
        |
        +--AccordionDrawer.QuadGridCell
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
TreeQuadGridCell

public abstract class QuadGridCell
extends GridCell

Author:
demo To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
protected  GridCell[][] kidCells
           
 int level
           
 
Fields inherited from class AccordionDrawer.GridCell
area, cellGeomDummy, cellGeoms, computedFrame, countBBoxDraw, countRecurse, countSubpixelRecurse, drawBackground, drawer, drawnFrame, drewMarkedAttachedFrame, enqueuedFrame, max, maxLine, min, minLine, nf, objmax, objmin, parentCell, rangeCachedFrame, rowcol, splitIndex
 
Constructor Summary
QuadGridCell(AccordionDrawer thedrawer, int thelevel, int therow, int thecol, boolean isQuad)
           
 
Method Summary
protected  void drawBackgroundBox(java.awt.Color boxColor)
           
 void drawDescend()
           
 GridCell getParent()
           
 GridCell pickDescend(int x, int y)
          Computes the kid cell that contains the click at (x,y)
 void setChild(GridCell newChild, int therow, int thecol)
           
 void setParent(GridCell p)
           
 
Methods inherited from class AccordionDrawer.GridCell
addGeom, bigEnough, compareTo, computePlaceThisFrame, createCell, draw, drawAttachedObjects, drawKidsGrid, equals, getArea, getAreaPix, getCellGeomDummy, getDrewMarkedAttachedFrame, getGeoms, getGeomsSize, getLevel, getMax, getMaxLine, getMaxPix, getMin, getMinLine, getMinPix, getObjMax, getObjMin, getSize, getSizeInPix, getSplitPix, getSplitPos, incrementCountBBoxDraw, isQuadTree, pickAttached, pickCell, possiblyEnqueue, print, removeGeom, setCellGeomDummy, setDrawBackground, setDrewMarkedAttachedFrame, setObjMax, setObjMin
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kidCells

protected GridCell[][] kidCells

level

public int level
Constructor Detail

QuadGridCell

public QuadGridCell(AccordionDrawer thedrawer,
                    int thelevel,
                    int therow,
                    int thecol,
                    boolean isQuad)
Parameters:
thedrawer -
thelevel -
therow -
thecol -
isQuad -
Method Detail

drawBackgroundBox

protected void drawBackgroundBox(java.awt.Color boxColor)
Specified by:
drawBackgroundBox in class GridCell

drawDescend

public void drawDescend()
Specified by:
drawDescend in class GridCell

pickDescend

public GridCell pickDescend(int x,
                            int y)
Computes the kid cell that contains the click at (x,y)

Specified by:
pickDescend in class GridCell

setChild

public void setChild(GridCell newChild,
                     int therow,
                     int thecol)
Specified by:
setChild in class GridCell

getParent

public GridCell getParent()
Specified by:
getParent in class GridCell

setParent

public void setParent(GridCell p)
Specified by:
setParent in class GridCell