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
 int level
           
 
Fields inherited from class AccordionDrawer.GridCell
area, drawer, drewMarkedAttachedFrame, objmax, objmin, rowcol
 
Constructor Summary
QuadGridCell(AccordionDrawer thedrawer, int thelevel, int therow, int thecol, boolean isQuad)
           
 
Method Summary
 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, 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
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

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