public abstract class VObject extends java.lang.Object implements Visualizable
VObject class is an abstract base class for all objects
that implement the Visualizable interface and have a width
and a height dimension.| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected int |
height
The height of the visual object.
|
protected int |
width
The width of the visual object.
|
| コンストラクタと説明 |
|---|
VObject()
Constructs a visual object.
|
VObject(int width,
int height)
Constructs a visual object with the specified width and height.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.lang.Object |
clone()
Returns a clone of this visual object.
|
java.awt.Dimension |
getSize()
Returns the size of this visual object.
|
boolean |
isResizable()
Checks if the visual object is resizable.
|
abstract void |
paint(java.awt.Graphics g,
java.awt.Point p)
Paints the visual object at the specified location.
|
void |
setSize(java.awt.Dimension d)
Resizes the visual object to the specified dimension.
|
protected int width
protected int height
public VObject()
public VObject(int width,
int height)
width - the width of the visual object.height - the height of the visual object.public java.awt.Dimension getSize()
getSize インタフェース内 VisualizableVisualizable.getSize()public void setSize(java.awt.Dimension d)
setSize インタフェース内 Visualizabled - the visual object dimension.Visualizable.setSize(java.awt.Dimension)public boolean isResizable()
isResizable インタフェース内 Visualizabletrue.Visualizable.isResizable()public abstract void paint(java.awt.Graphics g,
java.awt.Point p)
paint インタフェース内 Visualizableg - 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 クラス内 java.lang.Object