|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.style.FontStyle
public class FontStyle
Style that updates the font used for the component.
| Constructor Summary | |
|---|---|
FontStyle()
|
|
| Method Summary | |
|---|---|
void |
apply(Component component)
Applies this style to this component |
Color |
getFontColor()
Returns the color for the font |
boolean |
isBold()
Checks if is the font must be bold. |
boolean |
isItalic()
Checks if is the font must be italic. |
boolean |
isStrikedThrough()
Returns the strikedThrough property. |
void |
setBold(boolean bold)
Sets if the font is bold. |
void |
setFontColor(Color fontColor)
Sets the color for the font |
void |
setItalic(boolean italic)
Sets if the font is italic. |
void |
setStrikedThrough(boolean strikedThrough)
Sets the strikedThrough property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FontStyle()
| Method Detail |
|---|
public void apply(Component component)
Style
apply in interface Stylecomponent - Component to apply the style topublic boolean isStrikedThrough()
strikedThrough property.
strikedThrough property.public void setStrikedThrough(boolean strikedThrough)
strikedThrough property.
strikedThrough - public boolean isBold()
public void setBold(boolean bold)
bold - true if the font is boldpublic boolean isItalic()
public void setItalic(boolean italic)
italic - true if the font is italicpublic Color getFontColor()
public void setFontColor(Color fontColor)
fontColor - Color
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||