Class RubberbandRectangleX


public class RubberbandRectangleX
extends Rubberband

A Rubberband that does "crossed-out" rectangles

A note from Steve Verrill: This class (as RubberbandRectangle) was written by David Geary. See his book Graphic Java, Mastering the AWT. The class was modified on 7/17/97 by Steve Verrill to add an X to the interior of the rectangle.

See Also:
Rubberband, gjt.test.RubberbandTest

Field Summary
Fields inherited from class rubberband.Rubberband
anchor, end, last, stretched
Constructor Summary
RubberbandRectangleX(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 RubberbandRectangleX(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