C - component typepublic interface FontMethods<C extends java.awt.Component>
extends com.alee.utils.swing.SwingMethods
SwingMethods,
SwingUtils| Modifier and Type | Method and Description |
|---|---|
C |
changeFontSize(int change)
Changes font size of the specified component.
|
java.lang.String |
getFontName()
Returns component font name.
|
int |
getFontSize()
Returns component font size.
|
boolean |
isBoldFont()
Returns whether component font is bold or not.
|
boolean |
isItalicFont()
Returns whether component font is italic or not.
|
boolean |
isPlainFont()
Returns whether component font is plain or not.
|
C |
setBoldFont()
Sets bold font for the component.
|
C |
setBoldFont(boolean apply)
Sets bold font for the component.
|
C |
setFontName(java.lang.String fontName)
Sets component font name.
|
C |
setFontSize(int fontSize)
Sets component font size.
|
C |
setFontSizeAndStyle(int fontSize,
boolean bold,
boolean italic)
Sets font size and style for the specified component.
|
C |
setFontSizeAndStyle(int fontSize,
int style)
Sets font size and style for the specified component.
|
C |
setFontStyle(boolean bold,
boolean italic)
Sets component font style.
|
C |
setFontStyle(int style)
Sets component font style.
|
C |
setItalicFont()
Sets italic or plain font for the component.
|
C |
setItalicFont(boolean apply)
Sets italic or plain font for the component.
|
C |
setPlainFont()
Sets plain font for the component.
|
C |
setPlainFont(boolean apply)
Sets plain font for the component.
|
C setPlainFont()
C setPlainFont(boolean apply)
apply - whether to apply font changes or notboolean isPlainFont()
C setBoldFont()
C setBoldFont(boolean apply)
apply - whether to apply font changes or notboolean isBoldFont()
C setItalicFont()
C setItalicFont(boolean apply)
apply - whether to apply font changes or notboolean isItalicFont()
C setFontStyle(boolean bold, boolean italic)
bold - whether should set bold font or notitalic - whether should set italic font or notC setFontStyle(int style)
style - new styleC setFontSize(int fontSize)
fontSize - font sizeC changeFontSize(int change)
change - font size change amountint getFontSize()
C setFontSizeAndStyle(int fontSize, boolean bold, boolean italic)
fontSize - new font sizebold - whether should set bold font or notitalic - whether should set italic font or notC setFontSizeAndStyle(int fontSize, int style)
fontSize - new font sizestyle - new styleC setFontName(java.lang.String fontName)
fontName - new font namejava.lang.String getFontName()