| |
|
| java.lang.Object contrib.com.jgoodies.looks.Options
Options | final public class Options (Code) | | Provides access to several optional properties for the
JGoodies L&Fs, either by a key to the UIDefaults table
or via a method or both.
author: Karsten Lentzsch version: $Revision: 1.3 $ |
CONTROL_FONT_KEY | final public static String CONTROL_FONT_KEY(Code) | | |
DEFAULT_ICON_SIZE_KEY | final public static String DEFAULT_ICON_SIZE_KEY(Code) | | |
DEFAULT_LOOK_NAME | final public static String DEFAULT_LOOK_NAME(Code) | | |
EMBEDDED_TABS_KEY | final public static String EMBEDDED_TABS_KEY(Code) | | A client property key for JTabbedPanes that indicates
that tabs are painted with a special embedded appearance.
Supported by the Plastic look&feel family.
This effect will be achieved also if the EMBEDDED property is true.
|
FONT_SIZE_HINTS_KEY | final public static String FONT_SIZE_HINTS_KEY(Code) | | |
HEADER_STYLE_KEY | final public static String HEADER_STYLE_KEY(Code) | | Hint for the style: Single or Both, see HeaderStyle .
|
IS_ETCHED_KEY | final public static String IS_ETCHED_KEY(Code) | | Hint that the scroll pane border should be etched.
|
IS_NARROW_KEY | final public static String IS_NARROW_KEY(Code) | | Hint that the button margin should be narrow.
|
JGOODIES_WINDOWS_NAME | final public static String JGOODIES_WINDOWS_NAME(Code) | | |
NO_CONTENT_BORDER_KEY | final public static String NO_CONTENT_BORDER_KEY(Code) | | A client property key for JTabbedPanes that indicates
that no content border shall be painted.
Supported by the Plastic look&feel family.
This effect will be achieved also if the EMBEDDED property is true.
|
NO_ICONS_KEY | final public static String NO_ICONS_KEY(Code) | | Hint that the menu items in the menu have no icons.
|
PLASTIC3D_NAME | final public static String PLASTIC3D_NAME(Code) | | |
PLASTICXP_NAME | final public static String PLASTICXP_NAME(Code) | | |
POPUP_DROP_SHADOW_ENABLED_KEY | final public static String POPUP_DROP_SHADOW_ENABLED_KEY(Code) | | |
TAB_ICONS_ENABLED_KEY | final public static String TAB_ICONS_ENABLED_KEY(Code) | | |
TREE_LINE_STYLE_ANGLED_VALUE | final public static String TREE_LINE_STYLE_ANGLED_VALUE(Code) | | A client property value for JTrees
that indicates that lines shall be drawn.
|
TREE_LINE_STYLE_KEY | final public static String TREE_LINE_STYLE_KEY(Code) | | A client property key for JTrees.
Used with the angled and none style values.
|
TREE_LINE_STYLE_NONE_VALUE | final public static String TREE_LINE_STYLE_NONE_VALUE(Code) | | A client property value for JTrees
that indicates that lines shall be hidden.
|
USE_NARROW_BUTTONS_KEY | final public static String USE_NARROW_BUTTONS_KEY(Code) | | |
USE_SYSTEM_FONTS_APP_KEY | final public static String USE_SYSTEM_FONTS_APP_KEY(Code) | | |
USE_SYSTEM_FONTS_KEY | final public static String USE_SYSTEM_FONTS_KEY(Code) | | |
getCrossPlatformLookAndFeelClassName | public static String getCrossPlatformLookAndFeelClassName()(Code) | | Returns the class name for a cross-platform LookAndFeel .
the name of a cross platform look-and-feel class See Also: Options.getSystemLookAndFeelClassName() |
getDefaultIconSize | public static Dimension getDefaultIconSize()(Code) | | Returns the default icon size that is used in menus, menu items and
toolbars. Menu items that have no icon set are aligned using the default
icon dimensions.
the dimension of the default icon See Also: Options.setDefaultIconSize(Dimension) |
getUseNarrowButtons | public static boolean getUseNarrowButtons()(Code) | | Checks and answers if we shall use narrow button margins of 4 pixels.
Sun's L&F implementations use a much wider button margin of 14 pixels,
which leads to good button minimum width in the typical case.
Using narrow button margins can potentially cause compatibility issues,
so this feature must be switched on programmatically.
If you use narrow margin, you should take care of minimum button width,
either by the layout management or appropriate ButtonUI minimum widths.
true if all buttons shall use narrow margins See Also: Options.setUseNarrowButtons(boolean) |
getUseSystemFonts | public static boolean getUseSystemFonts()(Code) | | Returns whether a hint is set in the UIManager that indicates,
that a look&feel may use the native system fonts.
true if the UIManager indicates that system fonts shall be used See Also: Options.setUseSystemFonts(boolean) |
isPopupDropShadowActive | public static boolean isPopupDropShadowActive()(Code) | | Checks and answers whether popup drop shadows are active.
This feature shall be inactive with toolkits that use
native drop shadows, such as Aqua on the Mac OS X.
It is also inactive if the ShadowPopup cannot snapshot
the desktop background (due to security and AWT exceptions).
Otherwise the feature's enablement state is returned.
Currently only the Mac OS X is detected as platform where
the toolkit uses native drop shadows.
true if drop shadows are active, false if inactive See Also: Options.isPopupDropShadowEnabled() See Also: Options.setPopupDropShadowEnabled(boolean) |
isTabIconsEnabled | public static boolean isTabIconsEnabled()(Code) | | Checks and answers if we shall use icons in JTabbedPanes.
By default, tab icons are enabled. If the user has set a system property,
we log a message about the choosen style.
true if icons in tabbed panes are enabled, false if disabled See Also: Options.setTabIconsEnabled(boolean) |
setPopupDropShadowEnabled | public static void setPopupDropShadowEnabled(boolean b)(Code) | | Enables or disables drop shadows in PopupMenus.
Note that drop shadows are always inactive on platforms
that provide native drop shadows such as the Mac OS X.
It is recommended to enable this feature only on platforms that
accelerate translucency and snapshots with the hardware.
Parameters: b - true to enable drop shadows, false to disable them See Also: Options.isPopupDropShadowActive() See Also: Options.isPopupDropShadowEnabled() |
setTabIconsEnabled | public static void setTabIconsEnabled(boolean b)(Code) | | Enables or disables the use of icons in JTabbedPanes.
Parameters: b - true to enable icons in tabbed panes, false to disable them See Also: Options.isTabIconsEnabled() |
setUseNarrowButtons | public static void setUseNarrowButtons(boolean b)(Code) | | Sets if we use narrow or standard button margins.
Parameters: b - true to use narrow button margins globally See Also: Options.getUseNarrowButtons() |
setUseSystemFonts | public static void setUseSystemFonts(boolean useSystemFonts)(Code) | | Sets a value in the UIManager to indicate,
that a look&feel may use the native system fonts.
Parameters: useSystemFonts - true to enable system fonts in the UIManager See Also: Options.getUseSystemFonts() |
|
|
|