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

Constructor Index

 o NamedTextStyle(String, ExtendedFont)
Constructs a named text style with the specified style name and extended font.
 o NamedTextStyle(String, Font)
Constructs a named text style with the specified style name and font.
 o NamedTextStyle(String, Font, Color)
Constructs a named text style with the specified style name, font, and color.
 o NamedTextStyle(String, Font, Color, boolean)
Constructs a named text style with the specified style name, font, color, and underline.
 o NamedTextStyle(String, String, int, int)
Constructs a named text style with the specified style name, font name, font style and font size.
 o NamedTextStyle(String, String, int, int, Color)
Constructs a named text style with the specified style name, font name, font style, font size and color.
 o 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.

Method Index

 o clone()
Returns a clone of this text style.
 o equals(Object)
Compares two objects for equality.
 o getStyleName()
Returns the style name of this named text style.
 o hashCode()
Returns a hashcode for this named text style.
 o setStyleName(String)
Sets the style name of this named text style.

Constructors

 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.

Methods

 o getStyleName
 public String getStyleName()
Returns the style name of this named text style.

 o setStyleName
 public void setStyleName(String styleName)
Sets the style name of this named text style.

 o hashCode
 public int hashCode()
Returns a hashcode for this named text style.

Overrides:
hashCode in class TextStyle
 o equals
 public boolean equals(Object anObject)
Compares two objects for equality.

Overrides:
equals in class TextStyle
 o 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