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
-
OUTLINE
- The rectangle style constat for the outline of the rectangle.
-
PLAIN
- The rectangle style constat for the plain rectangle.
-
RAISED
- The rectangle style constat for the 3-D raised rectangle.
-
RAISED_OUTLINE
- The rectangle style constat for the outline of the 3-D raised rectangle.
-
ROUNDED
- The rectangle style constat for the rounded corner rectangle.
-
ROUNDED_OUTLINE
- The rectangle style constat for the outline of the rounded corner
rectangle.
-
SUNK
- The rectangle style constat for the 3-D sunk rectangle.
-
SUNK_OUTLINE
- The rectangle style constat for the outline of the 3-D sunk rectangle.
-
VRectangle()
- Constructs a plain rectangle.
-
VRectangle(int)
- Constructs a rectangle with the specified style.
-
VRectangle(int, int)
- Constructs a plain rectangle with the specified width and height.
-
VRectangle(int, int, int)
- Constructs a rectangle with the specified width and height, and
the specified style.
-
clone()
- Returns a clone of this rectangle.
-
getStyle()
- Returns the style of the rectangle.
-
paint(Graphics, Point)
- Paints the rectangle at the specified location.
-
setStyle(int)
- Sets the style of the rectangle to be the specified style.
PLAIN
public static final int PLAIN
- The rectangle style constat for the plain rectangle.
OUTLINE
public static final int OUTLINE
- The rectangle style constat for the outline of the rectangle.
ROUNDED
public static final int ROUNDED
- The rectangle style constat for the rounded corner rectangle.
ROUNDED_OUTLINE
public static final int ROUNDED_OUTLINE
- The rectangle style constat for the outline of the rounded corner
rectangle.
RAISED
public static final int RAISED
- The rectangle style constat for the 3-D raised rectangle.
RAISED_OUTLINE
public static final int RAISED_OUTLINE
- The rectangle style constat for the outline of the 3-D raised rectangle.
SUNK
public static final int SUNK
- The rectangle style constat for the 3-D sunk rectangle.
SUNK_OUTLINE
public static final int SUNK_OUTLINE
- The rectangle style constat for the outline of the 3-D sunk rectangle.
VRectangle
public VRectangle()
- Constructs a plain rectangle.
VRectangle
public VRectangle(int style)
- Constructs a rectangle with the specified style.
- Parameters:
- style - the style of the rectangle.
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.
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.
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
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
paint
public void paint(Graphics g,
Point p)
- Paints the rectangle at the specified location.
- Overrides:
- paint in class VObject
- See Also:
- paint
clone
public Object clone()
- Returns a clone of this rectangle.
- Overrides:
- clone in class VObject
All Packages Class Hierarchy This Package Previous Next Index