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

Constructor Index

 o VText(String)
Constructs a visual text width the specified string.
 o VText(Text)
Constructs a visual text width the specified text.

Method Index

 o clone()
Returns a clone of this visual text.
 o getSize()
Returns the size of this visual text.
 o getText()
Returns the text in this visual text.
 o isResizable()
Checks if the visual text is resizable.
 o paint(Graphics, Point)
Paints the visual text at the specified location.
 o setSize(Dimension)
Resizes the visual text to the specified dimension.
 o setText(Text)
Sets the text of this visual text to be the specified text.

Constructors

 o VText
 public VText(String str)
Constructs a visual text width the specified string.

Parameters:
str - the string.
 o VText
 public VText(Text text)
Constructs a visual text width the specified text.

Parameters:
text - the text.

Methods

 o getText
 public Text getText()
Returns the text in this visual text.

Returns:
the text in this visual text.
 o setText
 public void setText(Text text)
Sets the text of this visual text to be the specified text.

Parameters:
text - the specified text.
 o getSize
 public Dimension getSize()
Returns the size of this visual text.

See Also:
getSize
 o setSize
 public void setSize(Dimension d)
Resizes the visual text to the specified dimension.

See Also:
setSize
 o isResizable
 public boolean isResizable()
Checks if the visual text is resizable.

Returns:
false.
See Also:
isResizable
 o paint
 public void paint(Graphics g,
                   Point p)
Paints the visual text at the specified location.

See Also:
paint
 o 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