All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.VRectangle

java.lang.Object
   |
   +----jp.kyasu.graphics.VObject
           |
           +----jp.kyasu.graphics.VRectangle

public class VRectangle
extends VObject
The VRectangle class implements a visual rectangle. The rectangle creates different visual presentations according to the style.

Version:
01 Aug 1997
Author:
Kazuki YASUMATSU

Variable Index

 o OUTLINE
The rectangle style constat for the outline of the rectangle.
 o PLAIN
The rectangle style constat for the plain rectangle.
 o RAISED
The rectangle style constat for the 3-D raised rectangle.
 o RAISED_OUTLINE
The rectangle style constat for the outline of the 3-D raised rectangle.
 o ROUNDED
The rectangle style constat for the rounded corner rectangle.
 o ROUNDED_OUTLINE
The rectangle style constat for the outline of the rounded corner rectangle.
 o SUNK
The rectangle style constat for the 3-D sunk rectangle.
 o SUNK_OUTLINE
The rectangle style constat for the outline of the 3-D sunk rectangle.

Constructor Index

 o VRectangle()
Constructs a plain rectangle.
 o VRectangle(int)
Constructs a rectangle with the specified style.
 o VRectangle(int, int)
Constructs a plain rectangle with the specified width and height.
 o VRectangle(int, int, int)
Constructs a rectangle with the specified width and height, and the specified style.

Method Index

 o clone()
Returns a clone of this rectangle.
 o getStyle()
Returns the style of the rectangle.
 o paint(Graphics, Point)
Paints the rectangle at the specified location.
 o setStyle(int)
Sets the style of the rectangle to be the specified style.

Variables

 o PLAIN
 public static final int PLAIN
The rectangle style constat for the plain rectangle.

 o OUTLINE
 public static final int OUTLINE
The rectangle style constat for the outline of the rectangle.

 o ROUNDED
 public static final int ROUNDED
The rectangle style constat for the rounded corner rectangle.

 o ROUNDED_OUTLINE
 public static final int ROUNDED_OUTLINE
The rectangle style constat for the outline of the rounded corner rectangle.

 o RAISED
 public static final int RAISED
The rectangle style constat for the 3-D raised rectangle.

 o RAISED_OUTLINE
 public static final int RAISED_OUTLINE
The rectangle style constat for the outline of the 3-D raised rectangle.

 o SUNK
 public static final int SUNK
The rectangle style constat for the 3-D sunk rectangle.

 o SUNK_OUTLINE
 public static final int SUNK_OUTLINE
The rectangle style constat for the outline of the 3-D sunk rectangle.

Constructors

 o VRectangle
 public VRectangle()
Constructs a plain rectangle.

 o VRectangle
 public VRectangle(int style)
Constructs a rectangle with the specified style.

Parameters:
style - the style of the rectangle.
 o VRectangle
 public VRectangle(int width,
                   int height)
Constructs a plain rectangle with the specified width and height.

Parameters:
width - the width of the rectangle.
height - the height of the rectangle.
 o VRectangle
 public VRectangle(int width,
                   int height,
                   int style)
Constructs a rectangle with the specified width and height, and the specified style.

Parameters:
width - the width of the rectangle.
height - the height of the rectangle.
style - the style of the rectangle.

Methods

 o getStyle
 public int getStyle()
Returns the style of the rectangle.

Returns:
the style of the rectangle.
See Also:
PLAIN, OUTLINE, ROUNDED, ROUNDED_OUTLINE, RAISED, RAISED_OUTLINE, SUNK, SUNK_OUTLINE
 o setStyle
 public void setStyle(int style)
Sets the style of the rectangle to be the specified style.

Parameters:
style - the style of the rectangle.
See Also:
PLAIN, OUTLINE, ROUNDED, ROUNDED_OUTLINE, RAISED, RAISED_OUTLINE, SUNK, SUNK_OUTLINE
 o paint
 public void paint(Graphics g,
                   Point p)
Paints the rectangle at the specified location.

Overrides:
paint in class VObject
See Also:
paint
 o clone
 public Object clone()
Returns a clone of this rectangle.

Overrides:
clone in class VObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index