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
(package private)  java.awt.Color col
           
(package private)  AccordionDrawer d
           
 CellGeom item
           
(package private)  float linewidth
           
 int[] max
          top right corner, in pixel coordinates
 GridCell[] maxc
           
 int[] min
          bottom left corner, in pixel coordinates
 GridCell[] minc
           
(package private)  double plane
           
(package private) static int X
           
(package private) static int Y
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X

static final int X
See Also:
Constant Field Values

Y

static final int Y
See Also:
Constant Field Values

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


linewidth

float linewidth

col

java.awt.Color col

plane

double plane

minc

public GridCell[] minc

maxc

public GridCell[] maxc

item

public CellGeom item

d

AccordionDrawer d
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()