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

Field Summary
 int[] center
          center point, in pixel coordinates
 CellGeom item
           
 int[] max
          top right corner, in pixel coordinates
 GridCell[] maxc
           
 int[] min
          bottom left corner, in pixel coordinates
 GridCell[] minc
           
 
Constructor Summary
InteractionBox(GridCell[] minc, GridCell[] maxc, CellGeom item, AccordionDrawer d)
           
InteractionBox(int[] min, int[] max, AccordionDrawer d)
           
 
Method Summary
 void draw(java.awt.Color col, float linewidth, double plane)
           
 void drawRubberband()
           
 void undraw()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

InteractionBox

public InteractionBox(GridCell[] minc,
                      GridCell[] maxc,
                      CellGeom item,
                      AccordionDrawer d)

InteractionBox

public InteractionBox(int[] min,
                      int[] max,
                      AccordionDrawer d)
Method Detail

draw

public void draw(java.awt.Color col,
                 float linewidth,
                 double plane)

undraw

public void undraw()

drawRubberband

public void drawRubberband()