Class RubberbandRectangle


public class RubberbandRectangle
extends Rubberband

A Rubberband that does rectangles.

A note from Steve Verrill: This class was written by David Geary. See his book Graphic Java, Mastering the AWT.

See Also:
Rubberband, gjt.test.RubberbandTest

Field Summary
Fields inherited from class rubberband.Rubberband
anchor, end, last, stretched
Constructor Summary
RubberbandRectangle(java.awt.Component component)
Method Summary
 void drawLast(java.awt.Graphics graphics)
 void drawNext(java.awt.Graphics graphics)
Methods inherited from class rubberband.Rubberband
anchor, bounds, end, getAnchor, getEnd, getLast, getStretched, lastBounds, stretch
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public RubberbandRectangle(java.awt.Component component)
Method Detail


public void drawLast(java.awt.Graphics graphics)
Specified by:
drawLast in class Rubberband


public void drawNext(java.awt.Graphics graphics)
Specified by:
drawNext in class Rubberband