All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface jp.kyasu.graphics.Visualizable

public interface Visualizable
extends Cloneable, Serializable
The interface for objects which can create a visual presentation of itself.

Version:
23 Sep 1997
Author:
Kazuki YASUMATSU

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.

Methods

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

Returns:
the size of this visual object.
 o setSize
 public abstract void setSize(Dimension d)
Resizes the visual object to the specified dimension.

Parameters:
d - the visual object dimension.
 o isResizable
 public abstract boolean isResizable()
Checks if the visual object is resizable.

 o paint
 public abstract void paint(Graphics g,
                            Point p)
Paints the visual object at the specified location. The color in the graphics is used as is.

Parameters:
g - the specified graphics.
p - the location in the graphics to be painted.
 o clone
 public abstract Object clone()
Returns a clone of this visual object.

Returns:
a clone of this visual object.
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index