All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----gjt.rubberband.Rubberband
Rubberbands do their rubberbanding inside of a Component, which must be specified at construction time.
Subclasses are responsible for implementing void drawLast(Graphics g) and void drawNext(Graphics g). drawLast() draws the appropriate geometric shape at the last rubberband location, while drawNext() draws the appropriate geometric shape at the next rubberband location. All of the underlying support for rubberbanding is taken care of here, including handling XOR mode setting; extensions of Rubberband need not concern themselves with anything but drawing the last and next geometric shapes.
protected Point anchor
protected Point stretched
protected Point last
protected Point end
public Rubberband(Component component)
public abstract void drawLast(Graphics g)
public abstract void drawNext(Graphics g)
public Point getAnchor()
public Point getStretched()
public Point getLast()
public Point getEnd()
public void anchor(Point p)
public void stretch(Point p)
public void end(Point p)
public Rectangle bounds()
public Rectangle lastBounds()
All Packages Class Hierarchy This Package Previous Next Index