public class ModTextStyle extends TextStyle
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.ParagraphStyle,
直列化された形式| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected FontModifier |
modifier
The font modifier.
|
action, DEFAULT_STYLE, exFont| コンストラクタと説明 |
|---|
ModTextStyle(ExtendedFont exFont)
Constructs a modifier text style with the specified extended font.
|
ModTextStyle(ExtendedFont exFont,
FontModifier modifier)
Constructs a modifier text style with the specified extended font
and font modifier.
|
ModTextStyle(java.awt.Font font)
Constructs a modifier text style with the specified font.
|
ModTextStyle(java.awt.Font font,
FontModifier modifier)
Constructs a modifier text style with the specified font and font
modifier.
|
ModTextStyle(TextStyle defaultStyle)
Constructs a modifier text style that has the same contents as
the specified text style.
|
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.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected TextStyle |
basedOn(TextStyle baseStyle)
Creates a new style by modifying this style to be based on the
specified base text style.
|
java.lang.Object |
clone()
Returns a clone of this modifier text style.
|
TextStyle |
concreteStyle()
Returns a concrete text style.
|
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.
|
boolean |
equals(java.lang.Object anObject)
Compares two objects for equality.
|
FontModifier |
getFontModifier()
Returns the font modifier.
|
int |
hashCode()
Returns a hashcode for this modifier text style.
|
protected void |
setFontModifier(FontModifier modifier)
Sets the font modifier to be the specified font modifier.
|
java.lang.String |
toString()
Returns the string representation of this modifier text style.
|
deriveBoldStyle, deriveItalicStyle, deriveStyle, deriveStyle, deriveStyle, deriveStyle, drawText, equalsFontAndAction, getClickableTextAction, getExtendedFont, getFont, getFontMetrics, isClickable, setClickableTextActionprotected FontModifier modifier
public ModTextStyle(TextStyle defaultStyle)
defaultStyle - the text style.public ModTextStyle(TextStyle defaultStyle, FontModifier modifier)
defaultStyle - the text style.modifier - the font modifier.public ModTextStyle(java.awt.Font font)
font - the font for the style.public ModTextStyle(java.awt.Font font,
FontModifier modifier)
font - the font for the style.modifier - the font modifier.public ModTextStyle(ExtendedFont exFont)
exFont - the extended font for the style.public ModTextStyle(ExtendedFont exFont, FontModifier modifier)
exFont - the extended font for the style.modifier - the font modifier.public FontModifier getFontModifier()
protected void setFontModifier(FontModifier modifier)
public ModTextStyle deriveStyle(ExtendedFont exFont, FontModifier modifier)
exFont - the extended font object for the new style.modifier - the font modifier for the new style.public TextStyle concreteStyle()
concreteStyle クラス内 TextStyleprotected TextStyle basedOn(TextStyle baseStyle)
basedOn クラス内 TextStylebaseStyle - the base text style.Text.baseStyleOn(int, int, jp.kyasu.graphics.TextStyle)public int hashCode()
public boolean equals(java.lang.Object anObject)
public java.lang.Object clone()