public class VClipWrapper extends VWrapper
VClipWrapper class provides a clippng rectangle
for a visual object.| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected int |
height
The height of the clip wrapper.
|
protected int |
width
The width of the clip wrapper.
|
visualizable| コンストラクタと説明 |
|---|
VClipWrapper(Visualizable visualizable)
Constructs a clip wrapper with the wrapped visual object.
|
VClipWrapper(Visualizable visualizable,
int width,
int height)
Constructs a clip wrapper with the wrapped visual object,
clipping width and clipping height.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.lang.Object |
clone()
Returns a clone of this clip wrapper.
|
java.awt.Dimension |
getSize()
Returns the size of the clipping rectangle.
|
boolean |
isResizable()
Checks if the clipping rectangle is resizable.
|
void |
paint(java.awt.Graphics g,
java.awt.Point p)
Paints the visual object at the specified location, with the clipping
rectangle.
|
void |
setSize(java.awt.Dimension d)
Resizes the clipping rectangle to the specified dimension.
|
getVisualizable, setVisualizableprotected int width
protected int height
public VClipWrapper(Visualizable visualizable)
visualizable - the wrapped visual object.public VClipWrapper(Visualizable visualizable, int width, int height)
visualizable - the wrapped visual object.width - the width of the clip wrapper.height - the height of the clip wrapepr.public java.awt.Dimension getSize()
getSize インタフェース内 VisualizablegetSize クラス内 VWrapperVisualizable.getSize()public void setSize(java.awt.Dimension d)
setSize インタフェース内 VisualizablesetSize クラス内 VWrapperd - the visual object dimension.Visualizable.setSize(java.awt.Dimension)public boolean isResizable()
isResizable インタフェース内 VisualizableisResizable クラス内 VWrappertrue.Visualizable.isResizable()public void paint(java.awt.Graphics g,
java.awt.Point p)
paint インタフェース内 Visualizablepaint クラス内 VWrapperg - the specified graphics.p - the location in the graphics to be painted.Visualizable.paint(java.awt.Graphics, java.awt.Point)public java.lang.Object clone()
clone インタフェース内 Visualizableclone クラス内 VWrapper