All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.VRichText

java.lang.Object
   |
   +----jp.kyasu.graphics.VRichText

public class VRichText
extends Object
implements Visualizable
The VRichText class implements the visual rich text. This class provides the interface of the visual object to the RichText class.

Version:
21 Nov 1999
Author:
Kazuki YASUMATSU

Variable Index

 o DEFAULT_CENTER_STYLE
The default rich text style for the visual rich text with center justification.
 o DEFAULT_LEFT_STYLE
The default rich text style for the visual rich text with left justification.
 o DEFAULT_RIGHT_STYLE
The default rich text style for the visual rich text with right justification.

Constructor Index

 o VRichText(RichText)
Constructs a visual rich text with the specified rich text.
 o VRichText(String)
Constructs a visual rich text with the specified string.
 o VRichText(String, int)
Constructs a visual rich text with the specified string and the specified alignment.
 o VRichText(Text)
Constructs a visual rich text with the specified text.
 o VRichText(Text, int)
Constructs a visual rich text with the specified text and the specified alignment.
 o VRichText(TextBuffer)
Constructs a visual rich text with the specified text buffer.
 o VRichText(TextBuffer, int)
Constructs a visual rich text with the specified text buffer and the specified alignment.

Method Index

 o clone()
Returns a clone of this visual rich text.
 o getDefaultRichTextStyle(int)
Returns the default rich text style with the specified alignment.
 o getRichText()
Returns the rich text in this visual rich text.
 o getSize()
Returns the size of this visual rich text.
 o isResizable()
Checks if the visual rich text is resizable.
 o paint(Graphics, Point)
Paints the visual rich text at the specified location.
 o setSize(Dimension)
Resizes the visual rich text to the specified dimension.

Variables

 o DEFAULT_LEFT_STYLE
 public static final RichTextStyle DEFAULT_LEFT_STYLE
The default rich text style for the visual rich text with left justification.

 o DEFAULT_RIGHT_STYLE
 public static final RichTextStyle DEFAULT_RIGHT_STYLE
The default rich text style for the visual rich text with right justification.

 o DEFAULT_CENTER_STYLE
 public static final RichTextStyle DEFAULT_CENTER_STYLE
The default rich text style for the visual rich text with center justification.

Constructors

 o VRichText
 public VRichText(String str)
Constructs a visual rich text with the specified string.

Parameters:
str - the string.
 o VRichText
 public VRichText(String str,
                  int alignment)
Constructs a visual rich text with the specified string and the specified alignment.

Parameters:
str - the string.
alignment - the alignment of the rich text.
See Also:
LEFT, CENTER, RIGHT
 o VRichText
 public VRichText(Text text)
Constructs a visual rich text with the specified text.

Parameters:
text - the text.
 o VRichText
 public VRichText(Text text,
                  int alignment)
Constructs a visual rich text with the specified text and the specified alignment.

Parameters:
text - the text.
alignment - the alignment of the rich text.
See Also:
LEFT, RIGHT, CENTER
 o VRichText
 public VRichText(TextBuffer textBuffer)
Constructs a visual rich text with the specified text buffer.

Parameters:
textBuffer - the text buffer.
 o VRichText
 public VRichText(TextBuffer textBuffer,
                  int alignment)
Constructs a visual rich text with the specified text buffer and the specified alignment.

Parameters:
textBuffer - the text buffer.
alignment - the alignment of the rich text.
See Also:
LEFT, RIGHT, CENTER
 o VRichText
 public VRichText(RichText richText)
Constructs a visual rich text with the specified rich text.

Parameters:
richText - the rich text.

Methods

 o getDefaultRichTextStyle
 public static RichTextStyle getDefaultRichTextStyle(int alignment)
Returns the default rich text style with the specified alignment.

Returns:
the default rich text style with the specified alignment.
See Also:
LEFT, RIGHT, CENTER
 o getRichText
 public RichText getRichText()
Returns the rich text in this visual rich text.

Returns:
the rich text in this visual rich text.
 o getSize
 public Dimension getSize()
Returns the size of this visual rich text.

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

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

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

See Also:
paint
 o clone
 public Object clone()
Returns a clone of this visual rich text.

Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index