|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.TextFormat
public final class TextFormat
Contains text format properties.
New created TextFormat has properties:
Constructor Summary | |
---|---|
TextFormat(java.lang.String fontName)
Create new text format with specified font and default size. |
|
TextFormat(java.lang.String fontName,
short size)
Create new text format with specified font and size. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
BaselineType |
getBaseline()
Get baseline of a text. |
java.awt.Color |
getColor()
Get color of a text. |
java.lang.String |
getFontName()
Get font name of a text. |
short |
getSize()
Get font size of a text. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isBold()
Get whether the font is bold. |
boolean |
isItalic()
Get whether the font is italic. |
boolean |
isUnderline()
Get whether the font is underlined. |
void |
setBaseline(BaselineType baseline)
Set baseline of a text. |
void |
setBold(boolean bold)
Set whether the font is bold. |
void |
setColor(java.awt.Color color)
Set color of a text. |
void |
setFontName(java.lang.String fontName)
Set font name of a text. |
void |
setItalic(boolean italic)
Set whether the font is italic. |
void |
setSize(short size)
Set font size of a text. |
void |
setUnderline(boolean underline)
Set whether the font is underlined. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextFormat(java.lang.String fontName, short size)
fontName
- font name.size
- text size.public TextFormat(java.lang.String fontName)
fontName
- font name.Method Detail |
---|
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- new color.public BaselineType getBaseline()
public void setBaseline(BaselineType baseline)
baseline
- new baseline.public java.lang.String getFontName()
public void setFontName(java.lang.String fontName)
fontName
- new font name.public short getSize()
public void setSize(short size)
size
- new font size.public boolean isBold()
public void setBold(boolean bold)
bold
- true to make bold font.public boolean isItalic()
public void setItalic(boolean italic)
italic
- true to make italic font.public boolean isUnderline()
public void setUnderline(boolean underline)
underline
- true to make underlined font.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |