public class VArrow extends VObject
VArrow class implements a visual arrow. The arrow
creates different visual presentations according to the direction.| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected int |
direction
The direction of the arrow.
|
static int |
DOWN
The arrow direction constat for the down direction.
|
static int |
LEFT
The arrow direction constat for the left direction.
|
static int |
RIGHT
The arrow direction constat for the right direction.
|
static int |
UP
The arrow direction constat for the up direction.
|
| コンストラクタと説明 |
|---|
VArrow(int direction)
Constructs an arrow with the specified direction.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.lang.Object |
clone()
Returns a clone of this arrow.
|
int |
getDirection()
Returns the direction of the arrow.
|
void |
paint(java.awt.Graphics g,
java.awt.Point p)
Paints the arrow at the specified location.
|
void |
setDirection(int direction)
Sets the direction of the arrow to the specified direction.
|
getSize, isResizable, setSizeprotected int direction
public static final int UP
public static final int DOWN
public static final int LEFT
public static final int RIGHT
public VArrow(int direction)
direction - the direction of the arrow.public int getDirection()
public void setDirection(int direction)
public 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