All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.graphics.VText
java.lang.Object
|
+----jp.kyasu.graphics.VText
- public class VText
- extends Object
- implements Visualizable
The VText
class implements the visual text. This class
provides the interface of the visual object to the Text
class.
- Version:
- 12 Jun 1998
- Author:
- Kazuki YASUMATSU
- See Also:
- Text
-
VText(String)
- Constructs a visual text width the specified string.
-
VText(Text)
- Constructs a visual text width the specified text.
-
clone()
- Returns a clone of this visual text.
-
getSize()
- Returns the size of this visual text.
-
getText()
- Returns the text in this visual text.
-
isResizable()
- Checks if the visual text is resizable.
-
paint(Graphics, Point)
- Paints the visual text at the specified location.
-
setSize(Dimension)
- Resizes the visual text to the specified dimension.
-
setText(Text)
- Sets the text of this visual text to be the specified text.
VText
public VText(String str)
- Constructs a visual text width the specified string.
- Parameters:
- str - the string.
VText
public VText(Text text)
- Constructs a visual text width the specified text.
- Parameters:
- text - the text.
getText
public Text getText()
- Returns the text in this visual text.
- Returns:
- the text in this visual text.
setText
public void setText(Text text)
- Sets the text of this visual text to be the specified text.
- Parameters:
- text - the specified text.
getSize
public Dimension getSize()
- Returns the size of this visual text.
- See Also:
- getSize
setSize
public void setSize(Dimension d)
- Resizes the visual text to the specified dimension.
- See Also:
- setSize
isResizable
public boolean isResizable()
- Checks if the visual text is resizable.
- Returns:
-
false
.
- See Also:
- isResizable
paint
public void paint(Graphics g,
Point p)
- Paints the visual text at the specified location.
- See Also:
- paint
clone
public Object clone()
- Returns a clone of this visual text.
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index