AccordionTreeDrawer
Class TreeLeafGridCell
java.lang.Object
|
+--AccordionDrawer.GridCell
|
+--AccordionDrawer.LeafGridCell
|
+--AccordionTreeDrawer.TreeLeafGridCell
- All Implemented Interfaces:
- java.lang.Comparable
- public class TreeLeafGridCell
- extends LeafGridCell
- Author:
- jslack
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
Methods inherited from class AccordionDrawer.GridCell |
computePlaceThisFrame, drawAttachedObjects, getArea, getAreaPix, getCellGeomDummy, getDrewMarkedAttachedFrame, getGeoms, getGeomsSize, getLevel, getMax, getMaxLine, getMaxPix, getMin, getMinLine, getMinPix, getObjMax, getObjMin, getSize, getSizeInPix, getSplitPix, getSplitPos, incrementCountBBoxDraw, isQuadTree, pickAttached, pickCell, print, removeGeom, setCellGeomDummy, setDrawBackground, setDrewMarkedAttachedFrame, setObjMax, setObjMin |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
TreeLeafGridCell
public TreeLeafGridCell(AccordionDrawer thedrawer,
int thelevel,
int therow,
int thecol,
boolean isQuad)
- Parameters:
thedrawer
- thelevel
- therow
- thecol
-
createCell
public GridCell createCell(int level,
int row,
int col,
boolean isQuad)
- Specified by:
createCell
in class GridCell
draw
public void draw()
- Description copied from class:
GridCell
- Draws this GridCell.
We only draw a background box if we need to highlight
something - no need to draw boxes in the true background
color. we draw boxes for our children, not for ourself.
don't draw if:
a) we have no children at all. then we can't possibly need
to be highlighted, there's nothing underneath to be missed.
b) a child is enqueued. in this case it will eventually be
reponsible for highlighting itself if need be.
otherwise, if a child is too small to be enqueued, check if
we need to draw a box for it, i.e., if there are any highlighted
features enclosed by the child cell
After we're done queueing and/or drawing child cells, we draw the
features (objects) attached to this GridCell.
- Specified by:
draw
in class GridCell
possiblyEnqueue
public void possiblyEnqueue()
- Specified by:
possiblyEnqueue
in class GridCell
addGeom
public void addGeom(CellGeom g)
- Specified by:
addGeom
in class GridCell
bigEnough
public boolean bigEnough()
- Specified by:
bigEnough
in class GridCell
compareTo
public int compareTo(java.lang.Object other)
- Specified by:
compareTo
in interface java.lang.Comparable
- Specified by:
compareTo
in class GridCell
equals
public boolean equals(java.lang.Object other)
- Specified by:
equals
in class GridCell
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object