public class VRectangle extends VObject
VRectangle class implements a visual rectangle.
The rectangle creates different visual presentations according to
the style.| 修飾子とタイプ | フィールドと説明 |
|---|---|
static int |
OUTLINE
The rectangle style constat for the outline of the rectangle.
|
static int |
PLAIN
The rectangle style constat for the plain rectangle.
|
static int |
RAISED
The rectangle style constat for the 3-D raised rectangle.
|
static int |
RAISED_OUTLINE
The rectangle style constat for the outline of the 3-D raised rectangle.
|
static int |
ROUNDED
The rectangle style constat for the rounded corner rectangle.
|
static int |
ROUNDED_OUTLINE
The rectangle style constat for the outline of the rounded corner
rectangle.
|
protected int |
style
The style of the rectangle.
|
static int |
SUNK
The rectangle style constat for the 3-D sunk rectangle.
|
static int |
SUNK_OUTLINE
The rectangle style constat for the outline of the 3-D sunk rectangle.
|
| コンストラクタと説明 |
|---|
VRectangle()
Constructs a plain rectangle.
|
VRectangle(int style)
Constructs a rectangle with the specified style.
|
VRectangle(int width,
int height)
Constructs a plain rectangle with the specified width and height.
|
VRectangle(int width,
int height,
int style)
Constructs a rectangle with the specified width and height, and
the specified style.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.lang.Object |
clone()
Returns a clone of this rectangle.
|
int |
getStyle()
Returns the style of the rectangle.
|
void |
paint(java.awt.Graphics g,
java.awt.Point p)
Paints the rectangle at the specified location.
|
void |
setStyle(int style)
Sets the style of the rectangle to be the specified style.
|
getSize, isResizable, setSizeprotected int style
public static final int PLAIN
public static final int OUTLINE
public static final int ROUNDED
public static final int ROUNDED_OUTLINE
public static final int RAISED
public static final int RAISED_OUTLINE
public static final int SUNK
public static final int SUNK_OUTLINE
public VRectangle()
public VRectangle(int style)
style - the style of the rectangle.public VRectangle(int width,
int height)
width - the width of the rectangle.height - the height of the rectangle.public VRectangle(int width,
int height,
int style)
width - the width of the rectangle.height - the height of the rectangle.style - the style of the rectangle.public int getStyle()
PLAIN,
OUTLINE,
ROUNDED,
ROUNDED_OUTLINE,
RAISED,
RAISED_OUTLINE,
SUNK,
SUNK_OUTLINEpublic void setStyle(int style)
style - the style of the rectangle.PLAIN,
OUTLINE,
ROUNDED,
ROUNDED_OUTLINE,
RAISED,
RAISED_OUTLINE,
SUNK,
SUNK_OUTLINEpublic void paint(java.awt.Graphics g,
java.awt.Point p)
paint インタフェース内 Visualizablepaint クラス内 VObjectg - the specified graphics.p - the location in the graphics to be painted.Visualizable.paint(java.awt.Graphics, java.awt.Point)public java.lang.Object clone()
clone インタフェース内 Visualizableclone クラス内 VObject