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