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
-
ModTextStyle(ExtendedFont)
- Constructs a modifier text style with the specified extended font.
-
ModTextStyle(ExtendedFont, FontModifier)
- Constructs a modifier text style with the specified extended font
and font modifier.
-
ModTextStyle(Font)
- Constructs a modifier text style with the specified font.
-
ModTextStyle(Font, FontModifier)
- Constructs a modifier text style with the specified font and font
modifier.
-
ModTextStyle(TextStyle)
- Constructs a modifier text style that has the same contents as
the specified text style.
-
ModTextStyle(TextStyle, FontModifier)
- Constructs a modifier text style that has the same contents as
the specified text style, with the specified font modifier.
-
clone()
- Returns a clone of this modifier text style.
-
concreteStyle()
- Returns a concrete text style.
-
deriveStyle(ExtendedFont, FontModifier)
- Creates a new style by replicating this style with a new extended
font object and font modifier associated with it.
-
equals(Object)
- Compares two objects for equality.
-
getFontModifier()
- Returns the font modifier.
-
hashCode()
- Returns a hashcode for this modifier text style.
-
toString()
- Returns the string representation of this modifier text style.
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.
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.
ModTextStyle
public ModTextStyle(Font font)
- Constructs a modifier text style with the specified font.
- Parameters:
- font - the font for the style.
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.
ModTextStyle
public ModTextStyle(ExtendedFont exFont)
- Constructs a modifier text style with the specified extended font.
- Parameters:
- exFont - the extended font for the style.
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.
getFontModifier
public FontModifier getFontModifier()
- Returns the font modifier.
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.
concreteStyle
public TextStyle concreteStyle()
- Returns a concrete text style.
- Returns:
- the concrete text style.
- Overrides:
- concreteStyle in class TextStyle
hashCode
public int hashCode()
- Returns a hashcode for this modifier 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 modifier text style.
- Overrides:
- clone in class TextStyle
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