AccordionDrawer
Class InteractionBox
java.lang.Object
|
+--AccordionDrawer.InteractionBox
- public class InteractionBox
- extends java.lang.Object
Draw and cache information about an onscreen rubberband box.
Because we need to draw exactly this box again to erase it in XOR
mode, we must cache the corner points instead of looking them up
dynamically.
- Author:
- Tamara Munzner
- See Also:
GridCell
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
min
public int[] min
- bottom left corner, in pixel coordinates
max
public int[] max
- top right corner, in pixel coordinates
center
public int[] center
- center point, in pixel coordinates
minc
public GridCell[] minc
maxc
public GridCell[] maxc
item
public CellGeom item
InteractionBox
public InteractionBox(GridCell[] minc,
GridCell[] maxc,
CellGeom item,
AccordionDrawer d)
InteractionBox
public InteractionBox(int[] min,
int[] max,
AccordionDrawer d)
draw
public void draw(java.awt.Color col,
float linewidth,
double plane)
undraw
public void undraw()
drawRubberband
public void drawRubberband()