|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
C
- component typepublic interface FontMethods<C extends java.awt.Component>
This interface provides a set of methods that should be added into components that support font and uses that font to render. Basically all these methods are already implemented in SwingUtils but it is much easier to call them directly from component.
SwingMethods
,
SwingUtils
Method Summary | |
---|---|
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. |
Method Detail |
---|
C setPlainFont()
C setPlainFont(boolean apply)
apply
- whether to apply font changes or not
boolean isPlainFont()
C setBoldFont()
C setBoldFont(boolean apply)
apply
- whether to apply font changes or not
boolean isBoldFont()
C setItalicFont()
C setItalicFont(boolean apply)
apply
- whether to apply font changes or not
boolean isItalicFont()
C setFontStyle(boolean bold, boolean italic)
bold
- whether should set bold font or notitalic
- whether should set italic font or not
C setFontStyle(int style)
style
- new style
C setFontSize(int fontSize)
fontSize
- font size
C changeFontSize(int change)
change
- font size change amount
int 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 not
C setFontSizeAndStyle(int fontSize, int style)
fontSize
- new font sizestyle
- new style
C setFontName(java.lang.String fontName)
fontName
- new font name
java.lang.String getFontName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |