All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.VArrow

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

public class VArrow
extends VObject
The VArrow class implements a visual arrow. The arrow creates different visual presentations according to the direction.

Version:
08 Aug 1997
Author:
Kazuki YASUMATSU

Variable Index

 o DOWN
The arrow direction constat for the down direction.
 o LEFT
The arrow direction constat for the left direction.
 o RIGHT
The arrow direction constat for the right direction.
 o UP
The arrow direction constat for the up direction.

Constructor Index

 o VArrow(int)
Constructs an arrow with the specified direction.

Method Index

 o clone()
Returns a clone of this arrow.
 o getDirection()
Returns the direction of the arrow.
 o paint(Graphics, Point)
Paints the arrow at the specified location.
 o setDirection(int)
Sets the direction of the arrow to the specified direction.

Variables

 o UP
 public static final int UP
The arrow direction constat for the up direction.

 o DOWN
 public static final int DOWN
The arrow direction constat for the down direction.

 o LEFT
 public static final int LEFT
The arrow direction constat for the left direction.

 o RIGHT
 public static final int RIGHT
The arrow direction constat for the right direction.

Constructors

 o VArrow
 public VArrow(int direction)
Constructs an arrow with the specified direction.

Parameters:
direction - the direction of the arrow.

Methods

 o getDirection
 public int getDirection()
Returns the direction of the arrow.

Returns:
the direction of the arrow.
See Also:
UP, DOWN, LEFT, RIGHT
 o setDirection
 public void setDirection(int direction)
Sets the direction of the arrow to the specified direction.

Parameters:
direction - the direction of the checkbox.
See Also:
UP, DOWN, LEFT, RIGHT
 o paint
 public void paint(Graphics g,
                   Point p)
Paints the arrow at the specified location.

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

Overrides:
clone in class VObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index