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
-
VObject()
- Constructs a visual object.
-
VObject(int, int)
- Constructs a visual object with the specified width and height.
-
clone()
- Returns a clone of this visual object.
-
getSize()
- Returns the size of this visual object.
-
isResizable()
- Checks if the visual object is resizable.
-
paint(Graphics, Point)
- Paints the visual object at the specified location.
-
setSize(Dimension)
- Resizes the visual object to the specified dimension.
VObject
public VObject()
- Constructs a visual object.
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.
getSize
public Dimension getSize()
- Returns the size of this visual object.
- See Also:
- getSize
setSize
public void setSize(Dimension d)
- Resizes the visual object to the specified dimension.
- See Also:
- setSize
isResizable
public boolean isResizable()
- Checks if the visual object is resizable.
- Returns:
-
true
.
- See Also:
- isResizable
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
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