All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.VObject

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

public abstract class VObject
extends Object
implements Visualizable
The VObject class is an abstract base class for all objects that implement the Visualizable interface and have a width and a height dimension.

Version:
01 Aug 1997
Author:
Kazuki YASUMATSU

Constructor Index

 o VObject()
Constructs a visual object.
 o VObject(int, int)
Constructs a visual object with the specified width and height.

Method Index

 o clone()
Returns a clone of this visual object.
 o getSize()
Returns the size of this visual object.
 o isResizable()
Checks if the visual object is resizable.
 o paint(Graphics, Point)
Paints the visual object at the specified location.
 o setSize(Dimension)
Resizes the visual object to the specified dimension.

Constructors

 o VObject
 public VObject()
Constructs a visual object.

 o VObject
 public VObject(int width,
                int height)
Constructs a visual object with the specified width and height.

Parameters:
width - the width of the visual object.
height - the height of the visual object.

Methods

 o getSize
 public Dimension getSize()
Returns the size of this visual object.

See Also:
getSize
 o setSize
 public void setSize(Dimension d)
Resizes the visual object to the specified dimension.

See Also:
setSize
 o isResizable
 public boolean isResizable()
Checks if the visual object is resizable.

Returns:
true.
See Also:
isResizable
 o paint
 public abstract void paint(Graphics g,
                            Point p)
Paints the visual object at the specified location. The subclasses should override this method.

See Also:
paint
 o clone
 public Object clone()
Returns a clone of this visual object.

Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index