All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.VOval

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

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

Version:
01 Aug 1997
Author:
Kazuki YASUMATSU

Variable Index

 o OUTLINE
The oval style constat for the outline of the oval.
 o PLAIN
The oval style constat for the plain oval.

Constructor Index

 o VOval()
Constructs a plain oval.
 o VOval(int)
Constructs an oval with the specified style.
 o VOval(int, int)
Constructs a plain oval with the specified width and height.
 o VOval(int, int, int)
Constructs an oval with the specified width and height, and the specified style.

Method Index

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

Variables

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

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

Constructors

 o VOval
 public VOval()
Constructs a plain oval.

 o VOval
 public VOval(int style)
Constructs an oval with the specified style.

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

Parameters:
width - the width of the oval.
height - the height of the oval.
 o VOval
 public VOval(int width,
              int height,
              int style)
Constructs an oval with the specified width and height, and the specified style.

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

Methods

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

Returns:
the style of the oval.
See Also:
PLAIN, OUTLINE
 o setStyle
 public void setStyle(int style)
Sets the style of the oval to be the specified style.

Parameters:
style - the style of the oval.
See Also:
PLAIN, OUTLINE
 o paint
 public void paint(Graphics g,
                   Point p)
Paints the oval at the specified location.

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

Overrides:
clone in class VObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index