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
-
VClipWrapper(Visualizable)
- Constructs a clip wrapper with the wrapped visual object.
-
VClipWrapper(Visualizable, int, int)
- Constructs a clip wrapper with the wrapped visual object,
clipping width and clipping height.
-
clone()
- Returns a clone of this clip wrapper.
-
getSize()
- Returns the size of the clipping rectangle.
-
isResizable()
- Checks if the clipping rectangle is resizable.
-
paint(Graphics, Point)
- Paints the visual object at the specified location, with the clipping
rectangle.
-
setSize(Dimension)
- Resizes the clipping rectangle to the specified dimension.
VClipWrapper
public VClipWrapper(Visualizable visualizable)
- Constructs a clip wrapper with the wrapped visual object.
- Parameters:
- visualizable - the wrapped visual object.
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.
getSize
public Dimension getSize()
- Returns the size of the clipping rectangle.
- Overrides:
- getSize in class VWrapper
- See Also:
- getSize
setSize
public void setSize(Dimension d)
- Resizes the clipping rectangle to the specified dimension.
- Overrides:
- setSize in class VWrapper
- See Also:
- setSize
isResizable
public boolean isResizable()
- Checks if the clipping rectangle is resizable.
- Returns:
-
true
.
- Overrides:
- isResizable in class VWrapper
- See Also:
- isResizable
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
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