All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.awt.Rectangle | +----gjt.DrawnRectangle | +----gjt.EtchedRectangle
Drawn etched in by default, drawing style used by paint() is controlled by etchedIn() and etchedOut(). Note that etchedIn() and etchedOut() do not result in anything being painted, but only set the state for the next call to paint(). To set the state and paint in one operation, use paintEtchedIn() and paintEtchedOut().
Although it is permissible to set the thickness of EtchedRectangles, they tend to loose the etching effect if thickness is greater than 4.
The current state of the rectangle may be obtained by calling isEtchedIn().
protected static Etching _defaultEtching
public EtchedRectangle(Component drawInto)
public EtchedRectangle(Component drawInto, int thickness)
public EtchedRectangle(Component drawInto, int x, int y, int w, int h)
public EtchedRectangle(Component drawInto, int thickness, int x, int y, int w, int h)
public EtchedRectangle(Component drawInto, Etching etching, int thickness, int x, int y, int w, int h)
public void etchedIn()
public void etchedOut()
public boolean isEtchedIn()
public void paint()
public void paintEtchedIn()
public void paintEtchedOut()
public String paramString()
All Packages Class Hierarchy This Package Previous Next Index