All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.ModTextStyle

java.lang.Object
   |
   +----jp.kyasu.graphics.TextStyle
           |
           +----jp.kyasu.graphics.ModTextStyle

public class ModTextStyle
extends TextStyle
The ModTextStyle implements the text style with the font modifier. The font modifier of the modifier text style is fired, when the text with the modifier text style is in the paragraph whose style has the base text style.

Version:
22 Jun 1998
Author:
Kazuki YASUMATSU
See Also:
ParagraphStyle

Constructor Index

 o ModTextStyle(ExtendedFont)
Constructs a modifier text style with the specified extended font.
 o ModTextStyle(ExtendedFont, FontModifier)
Constructs a modifier text style with the specified extended font and font modifier.
 o ModTextStyle(Font)
Constructs a modifier text style with the specified font.
 o ModTextStyle(Font, FontModifier)
Constructs a modifier text style with the specified font and font modifier.
 o ModTextStyle(TextStyle)
Constructs a modifier text style that has the same contents as the specified text style.
 o ModTextStyle(TextStyle, FontModifier)
Constructs a modifier text style that has the same contents as the specified text style, with the specified font modifier.

Method Index

 o clone()
Returns a clone of this modifier text style.
 o concreteStyle()
Returns a concrete text style.
 o deriveStyle(ExtendedFont, FontModifier)
Creates a new style by replicating this style with a new extended font object and font modifier associated with it.
 o equals(Object)
Compares two objects for equality.
 o getFontModifier()
Returns the font modifier.
 o hashCode()
Returns a hashcode for this modifier text style.
 o toString()
Returns the string representation of this modifier text style.

Constructors

 o ModTextStyle
 public ModTextStyle(TextStyle defaultStyle)
Constructs a modifier text style that has the same contents as the specified text style.

Parameters:
defaultStyle - the text style.
 o ModTextStyle
 public ModTextStyle(TextStyle defaultStyle,
                     FontModifier modifier)
Constructs a modifier text style that has the same contents as the specified text style, with the specified font modifier.

Parameters:
defaultStyle - the text style.
modifier - the font modifier.
 o ModTextStyle
 public ModTextStyle(Font font)
Constructs a modifier text style with the specified font.

Parameters:
font - the font for the style.
 o ModTextStyle
 public ModTextStyle(Font font,
                     FontModifier modifier)
Constructs a modifier text style with the specified font and font modifier.

Parameters:
font - the font for the style.
modifier - the font modifier.
 o ModTextStyle
 public ModTextStyle(ExtendedFont exFont)
Constructs a modifier text style with the specified extended font.

Parameters:
exFont - the extended font for the style.
 o ModTextStyle
 public ModTextStyle(ExtendedFont exFont,
                     FontModifier modifier)
Constructs a modifier text style with the specified extended font and font modifier.

Parameters:
exFont - the extended font for the style.
modifier - the font modifier.

Methods

 o getFontModifier
 public FontModifier getFontModifier()
Returns the font modifier.

 o deriveStyle
 public ModTextStyle deriveStyle(ExtendedFont exFont,
                                 FontModifier modifier)
Creates a new style by replicating this style with a new extended font object and font modifier associated with it.

Parameters:
exFont - the extended font object for the new style.
modifier - the font modifier for the new style.
Returns:
a new style.
 o concreteStyle
 public TextStyle concreteStyle()
Returns a concrete text style.

Returns:
the concrete text style.
Overrides:
concreteStyle in class TextStyle
 o hashCode
 public int hashCode()
Returns a hashcode for this modifier 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 modifier text style.

Overrides:
clone in class TextStyle
 o toString
 public String toString()
Returns the string representation of this modifier text style.

Overrides:
toString in class TextStyle

All Packages  Class Hierarchy  This Package  Previous  Next  Index