All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.awt.util.NamedTextStyle
java.lang.Object
|
+----jp.kyasu.graphics.TextStyle
|
+----jp.kyasu.awt.util.NamedTextStyle
- public class NamedTextStyle
- extends TextStyle
The NamedTextStyle
class implements the style for the text
object. The NamedTextStyle
object has a style name.
- Version:
- 27 Nov 1997
- Author:
- Kazuki YASUMATSU
- See Also:
- Text
-
NamedTextStyle(String, ExtendedFont)
- Constructs a named text style with the specified style name and
extended font.
-
NamedTextStyle(String, Font)
- Constructs a named text style with the specified style name and font.
-
NamedTextStyle(String, Font, Color)
- Constructs a named text style with the specified style name, font,
and color.
-
NamedTextStyle(String, Font, Color, boolean)
- Constructs a named text style with the specified style name, font,
color, and underline.
-
NamedTextStyle(String, String, int, int)
- Constructs a named text style with the specified style name, font name,
font style and font size.
-
NamedTextStyle(String, String, int, int, Color)
- Constructs a named text style with the specified style name, font name,
font style, font size and color.
-
NamedTextStyle(String, String, int, int, Color, boolean)
- Constructs a named text style with the specified style name, font name,
font style, font size, color, and underline.
-
clone()
- Returns a clone of this text style.
-
equals(Object)
- Compares two objects for equality.
-
getStyleName()
- Returns the style name of this named text style.
-
hashCode()
- Returns a hashcode for this named text style.
-
setStyleName(String)
- Sets the style name of this named text style.
NamedTextStyle
public NamedTextStyle(String styleName,
String name,
int style,
int size)
- Constructs a named text style with the specified style name, font name,
font style and font size.
- Parameters:
- styleName - the style name of the text style.
- name - the name of the font.
- style - the style of the font.
- size - the point size of the font.
NamedTextStyle
public NamedTextStyle(String styleName,
String name,
int style,
int size,
Color color)
- Constructs a named text style with the specified style name, font name,
font style, font size and color.
- Parameters:
- styleName - the style name of the text style.
- name - the name of the font.
- style - the style of the font.
- size - the point size of the font.
- color - the color of the font.
NamedTextStyle
public NamedTextStyle(String styleName,
String name,
int style,
int size,
Color color,
boolean underline)
- Constructs a named text style with the specified style name, font name,
font style, font size, color, and underline.
- Parameters:
- styleName - the style name of the text style.
- name - the name of the font.
- style - the style of the font.
- size - the point size of the font.
- color - the color of the font.
- underline - the font is underlined.
NamedTextStyle
public NamedTextStyle(String styleName,
Font font)
- Constructs a named text style with the specified style name and font.
- Parameters:
- styleName - the style name of the text style.
- font - the font of the style.
NamedTextStyle
public NamedTextStyle(String styleName,
Font font,
Color color)
- Constructs a named text style with the specified style name, font,
and color.
- Parameters:
- styleName - the style name of the text style.
- font - the font of the style.
- color - the color of the font.
NamedTextStyle
public NamedTextStyle(String styleName,
Font font,
Color color,
boolean underline)
- Constructs a named text style with the specified style name, font,
color, and underline.
- Parameters:
- styleName - the style name of the text style.
- font - the font of the style.
- color - the color of the font.
- underline - the font is underlined.
NamedTextStyle
public NamedTextStyle(String styleName,
ExtendedFont exFont)
- Constructs a named text style with the specified style name and
extended font.
- Parameters:
- styleName - the style name of the text style.
- exFont - the extended font of the style.
getStyleName
public String getStyleName()
- Returns the style name of this named text style.
setStyleName
public void setStyleName(String styleName)
- Sets the style name of this named text style.
hashCode
public int hashCode()
- Returns a hashcode for this named text style.
- Overrides:
- hashCode in class TextStyle
equals
public boolean equals(Object anObject)
- Compares two objects for equality.
- Overrides:
- equals in class TextStyle
clone
public Object clone()
- Returns a clone of this text style.
- Overrides:
- clone in class TextStyle
All Packages Class Hierarchy This Package Previous Next Index