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
-
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.
getSize
public abstract Dimension getSize()
- Returns the size of this visual object.
- Returns:
- the size of this visual object.
setSize
public abstract void setSize(Dimension d)
- Resizes the visual object to the specified dimension.
- Parameters:
- d - the visual object dimension.
isResizable
public abstract boolean isResizable()
- Checks if the visual object is resizable.
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.
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