Class gjt.ThreeDRectangle
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.ThreeDRectangle

java.lang.Object
   |
   +----java.awt.Rectangle
           |
           +----gjt.DrawnRectangle
                   |
                   +----gjt.ThreeDRectangle

public class ThreeDRectangle
extends DrawnRectangle
A DrawnRectangle which draws in 3D.

Drawn raised by default, drawing style used by paint() is controlled by raise() and inset(). Note that raise() and inset() 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 paintRaised() and paintInset().

The current state of the rectangle may be obtained by calling isRaised().

See Also:
DrawnRectangle, EtchedRectangle, DrawnRectangleTest

Variable Index

 o _defaultState

Constructor Index

 o ThreeDRectangle(Component)
 o ThreeDRectangle(Component, int)
 o ThreeDRectangle(Component, int, int, int, int)
 o ThreeDRectangle(Component, int, int, int, int, int)
 o ThreeDRectangle(Component, ThreeDBorderStyle, int, int, int, int, int)

Method Index

 o inset()
 o isRaised()
 o paint()
 o paintInset()
 o paintRaised()
 o paramString()
 o raise()

Variables

 o _defaultState
  protected static ThreeDBorderStyle _defaultState

Constructors

 o ThreeDRectangle
  public ThreeDRectangle(Component drawInto)
 o ThreeDRectangle
  public ThreeDRectangle(Component drawInto,
                         int thickness)
 o ThreeDRectangle
  public ThreeDRectangle(Component drawInto,
                         int x,
                         int y,
                         int w,
                         int h)
 o ThreeDRectangle
  public ThreeDRectangle(Component drawInto,
                         int thickness,
                         int x,
                         int y,
                         int w,
                         int h)
 o ThreeDRectangle
  public ThreeDRectangle(Component drawInto,
                         ThreeDBorderStyle state,
                         int thickness,
                         int x,
                         int y,
                         int w,
                         int h)

Methods

 o paint
  public void paint()
Overrides:
paint in class DrawnRectangle
 o raise
  public void raise()
 o inset
  public void inset()
 o isRaised
  public boolean isRaised()
 o paramString
  public String paramString()
Overrides:
paramString in class DrawnRectangle
 o paintRaised
  public void paintRaised()
 o paintInset
  public void paintInset()

All Packages  Class Hierarchy  This Package  Previous  Next  Index