|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FaceRenderer
FaceRenderers are used by the libarary to configure the properties of buttons and menus. FaceRenderers allow the library to apply global policies to the appearance of buttons and menus created by the library.
Default implementations are DefaultFaceRenderer and
MacOSFaceRenderer.
DefaultFaceRenderer,
MacOSFaceRenderer,
Defaults.setFaceRenderer(FaceRenderer)| Method Summary | |
|---|---|
void |
configureButton(javax.swing.AbstractButton button,
RenderContext renderContext)
Configures the specified button using the specified RenderContext. |
void |
configureMenu(javax.swing.JMenuItem menu,
RenderContext renderContext)
Configures the specified button using the specified RenderContext. |
boolean |
isHideToobarText()
Checks if toolbar buttons should never display text. |
boolean |
isPositionToolbarTextBelowIcon()
Checks if text should always be rendered below the icons on toolbars. |
void |
setHideToobarText(boolean hideTextOnToolbars)
Configures this render to never render text on toolbar buttons. |
void |
setPositionToolbarTextBelowIcon(boolean toolbarTextBelow)
Configures this renderer to always display toolbar text below the icon. |
| Method Detail |
|---|
void configureButton(javax.swing.AbstractButton button,
RenderContext renderContext)
RenderContext.
button - the button to configure.renderContext - the RenderContext of the button.
void configureMenu(javax.swing.JMenuItem menu,
RenderContext renderContext)
RenderContext.
menu - the menu to configure.renderContext - the RenderContext of the menu.void setPositionToolbarTextBelowIcon(boolean toolbarTextBelow)
toolbarTextBelow - true to display toolbar text
below the icon, false to use
the face configuration.boolean isPositionToolbarTextBelowIcon()
true if the text of toolbar buttons should aways
be rendered below the icon, false to
use the face configuration as is.void setHideToobarText(boolean hideTextOnToolbars)
hideTextOnToolbars - true to never render text on toolbar
buttons, false to use the face configration.boolean isHideToobarText()
true if toolbar buttons should never display text, false
if the face normal configuration should be used.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||