All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.VClipWrapper

java.lang.Object
   |
   +----jp.kyasu.graphics.VWrapper
           |
           +----jp.kyasu.graphics.VClipWrapper

public class VClipWrapper
extends VWrapper
The VClipWrapper class provides a clippng rectangle for a visual object.

Version:
29 Nov 1997
Author:
Kazuki YASUMATSU

Constructor Index

 o VClipWrapper(Visualizable)
Constructs a clip wrapper with the wrapped visual object.
 o VClipWrapper(Visualizable, int, int)
Constructs a clip wrapper with the wrapped visual object, clipping width and clipping height.

Method Index

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

Constructors

 o VClipWrapper
 public VClipWrapper(Visualizable visualizable)
Constructs a clip wrapper with the wrapped visual object.

Parameters:
visualizable - the wrapped visual object.
 o VClipWrapper
 public VClipWrapper(Visualizable visualizable,
                     int width,
                     int height)
Constructs a clip wrapper with the wrapped visual object, clipping width and clipping height.

Parameters:
visualizable - the wrapped visual object.
width - the width of the clip wrapper.
height - the height of the clip wrapepr.

Methods

 o getSize
 public Dimension getSize()
Returns the size of the clipping rectangle.

Overrides:
getSize in class VWrapper
See Also:
getSize
 o setSize
 public void setSize(Dimension d)
Resizes the clipping rectangle to the specified dimension.

Overrides:
setSize in class VWrapper
See Also:
setSize
 o isResizable
 public boolean isResizable()
Checks if the clipping rectangle is resizable.

Returns:
true.
Overrides:
isResizable in class VWrapper
See Also:
isResizable
 o paint
 public void paint(Graphics g,
                   Point p)
Paints the visual object at the specified location, with the clipping rectangle.

Overrides:
paint in class VWrapper
See Also:
paint
 o clone
 public Object clone()
Returns a clone of this clip wrapper.

Overrides:
clone in class VWrapper

All Packages  Class Hierarchy  This Package  Previous  Next  Index