All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.graphics.VWrapper
java.lang.Object
|
+----jp.kyasu.graphics.VWrapper
- public class VWrapper
- extends Object
- implements Visualizable
The VWrapper
class implements a visual wrapper that
holds a visual object.
- Version:
- 01 Aug 1997
- Author:
- Kazuki YASUMATSU
-
VWrapper(Visualizable)
- Constructs a visual wrapper with the wrapped visual object.
-
clone()
- Returns a clone of this visual object.
-
getSize()
- Returns the size of this visual object.
-
getVisualizable()
- Returns the wrapped 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.
-
setVisualizable(Visualizable)
- Sets the wrapped visual object to be the specified visual object.
VWrapper
public VWrapper(Visualizable visualizable)
- Constructs a visual wrapper with the wrapped visual object.
- Parameters:
- visualizable - the wrapped visual object.
getVisualizable
public Visualizable getVisualizable()
- Returns the wrapped visual object.
- Returns:
- the wrapped visual object.
setVisualizable
public void setVisualizable(Visualizable visualizable)
- Sets the wrapped visual object to be the specified visual object.
- Parameters:
- visualizable - the specified 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.
- See Also:
- isResizable
paint
public void paint(Graphics g,
Point p)
- Paints the visual object at the specified location.
- 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