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
-
DEFAULT_CENTER_STYLE
- The default rich text style for the visual rich text with
center justification.
-
DEFAULT_LEFT_STYLE
- The default rich text style for the visual rich text with
left justification.
-
DEFAULT_RIGHT_STYLE
- The default rich text style for the visual rich text with
right justification.
-
VRichText(RichText)
- Constructs a visual rich text with the specified rich text.
-
VRichText(String)
- Constructs a visual rich text with the specified string.
-
VRichText(String, int)
- Constructs a visual rich text with the specified string and
the specified alignment.
-
VRichText(Text)
- Constructs a visual rich text with the specified text.
-
VRichText(Text, int)
- Constructs a visual rich text with the specified text and
the specified alignment.
-
VRichText(TextBuffer)
- Constructs a visual rich text with the specified text buffer.
-
VRichText(TextBuffer, int)
- Constructs a visual rich text with the specified text buffer and
the specified alignment.
-
clone()
- Returns a clone of this visual rich text.
-
getDefaultRichTextStyle(int)
- Returns the default rich text style with the specified alignment.
-
getRichText()
- Returns the rich text in this visual rich text.
-
getSize()
- Returns the size of this visual rich text.
-
isResizable()
- Checks if the visual rich text is resizable.
-
paint(Graphics, Point)
- Paints the visual rich text at the specified location.
-
setSize(Dimension)
- Resizes the visual rich text to the specified dimension.
DEFAULT_LEFT_STYLE
public static final RichTextStyle DEFAULT_LEFT_STYLE
- The default rich text style for the visual rich text with
left justification.
DEFAULT_RIGHT_STYLE
public static final RichTextStyle DEFAULT_RIGHT_STYLE
- The default rich text style for the visual rich text with
right justification.
DEFAULT_CENTER_STYLE
public static final RichTextStyle DEFAULT_CENTER_STYLE
- The default rich text style for the visual rich text with
center justification.
VRichText
public VRichText(String str)
- Constructs a visual rich text with the specified string.
- Parameters:
- str - the string.
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
VRichText
public VRichText(Text text)
- Constructs a visual rich text with the specified text.
- Parameters:
- text - the text.
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
VRichText
public VRichText(TextBuffer textBuffer)
- Constructs a visual rich text with the specified text buffer.
- Parameters:
- textBuffer - the text buffer.
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
VRichText
public VRichText(RichText richText)
- Constructs a visual rich text with the specified rich text.
- Parameters:
- richText - the rich text.
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
getRichText
public RichText getRichText()
- Returns the rich text in this visual rich text.
- Returns:
- the rich text in this visual rich text.
getSize
public Dimension getSize()
- Returns the size of this visual rich text.
- See Also:
- getSize
setSize
public void setSize(Dimension d)
- Resizes the visual rich text to the specified dimension.
- See Also:
- setSize
isResizable
public boolean isResizable()
- Checks if the visual rich text is resizable.
- Returns:
-
false
.
- See Also:
- isResizable
paint
public void paint(Graphics g,
Point p)
- Paints the visual rich text at the specified location.
- See Also:
- paint
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