public abstract class LFCustoms extends Object
A non-standard look and feel that wishes to provide some custom colors for NetBeans window system, etc., can do so by placing an instance of its implementation of LFCustoms into UIDefaults under the key "Nb.[return value of the custom look and feel's getID() method]LFCustoms".
Given that all this class does is return some keys and values, in the future it may be replaced by an XML file similar to theme files.
This class defines a number of relatively self-explanatory UIManager keys for things used in various parts of NetBeans.
Constructor and Description |
---|
LFCustoms() |
Modifier and Type | Method and Description |
---|---|
protected Object[] |
additionalKeys()
LFCustoms implementations which use UIBootstrapValue.Lazy should return
any keys that it will install here, so they can be merged into the list
of things to clear on L&F change.
|
Object[] |
createApplicationSpecificKeysAndValues()
Create any objects to put into UIDefaults for custom components which use UIManager to find values, UIs, etc.
|
Object[] |
createGuaranteedKeysAndValues()
Provide UIDefaults entries for things which components rely on being non-null, but which may be null on some
look and feels or some versions of the look and feel in question.
|
Object[] |
createLookAndFeelCustomizationKeysAndValues()
Create any objects to put into UIDefaults to replace values normally supplied by the look
and feel, to customize application appearance.
|
static Color |
getForeground(AttributeSet a)
get foreground text color from AttributeSet
or get window foreground text color if AttributeSet doesn't define foreground text color
|
static String |
getHexString(int color)
convert color
|
static Color |
getTextFgColor() |
static String |
getTextFgColorHTML() |
static Color |
shiftColor(Color color)
convert color to brighter one if window foreground text color is bright color
or convert color to darker one if window foreground text color is dark color
|
protected static final String WORKPLACE_FILL
protected static final String CUSTOM_FONT_SIZE
protected static final String DEFAULT_FONT_SIZE
protected static final String EDITOR_PREFERRED_COLOR_PROFILE
protected static final String EDITOR_STATUS_LEFT_BORDER
protected static final String EDITOR_STATUS_INNER_BORDER
protected static final String EDITOR_STATUS_RIGHT_BORDER
protected static final String EDITOR_STATUS_ONLYONEBORDER
protected static final String EDITOR_TABSCOMPONENT_BORDER
protected static final String EDITOR_TOOLBAR_BORDER
protected static final String EDITOR_ERRORSTRIPE_SCROLLBAR_INSETS
protected static final String EXPLORER_STATUS_BORDER
protected static final String EXPLORER_FOLDER_ICON
protected static final String EXPLORER_FOLDER_OPENED_ICON
protected static final String DESKTOP_BORDER
public static final String SCROLLPANE_BORDER
protected static final String TOOLBAR_UI
protected static final String DESKTOP_BACKGROUND
public static final String SCROLLPANE_BORDER_COLOR
protected static final String OUTPUT_SELECTION_BACKGROUND
protected static final String OUTPUT_HYPERLINK_FOREGROUND
protected static final String OUTPUT_BACKGROUND
protected static final String OUTPUT_FOREGROUND
protected static final String QUICKSEARCH_BORDER
protected static final String PROPSHEET_ALTERNATE_ROW_COLOR
protected static final String PROPSHEET_SET_BACKGROUND
protected static final String PROPSHEET_SELECTED_SET_BACKGROUND
protected static final String PROPSHEET_SET_FOREGROUND
protected static final String PROPSHEET_SELECTED_SET_FOREGROUND
protected static final String PROPSHEET_DISABLED_FOREGROUND
protected static final String PROPSHEET_SELECTION_BACKGROUND
protected static final String PROPSHEET_SELECTION_FOREGROUND
protected static final String PROPSHEET_BUTTON_FOREGROUND
protected static final String PROPSHEET_BUTTON_COLOR
protected static final String PROPSHEET_BACKGROUND
protected static final String PROPSHEET_ICON_MARGIN
protected static final String PROPSHEET_ROWHEIGHT
protected static final String ERROR_FOREGROUND
protected static final String WARNING_FOREGROUND
protected static final String EDITOR_TABBED_CONTAINER_UI
protected static final String EDITOR_TAB_DISPLAYER_UI
protected static final String VIEW_TAB_DISPLAYER_UI
protected static final String SLIDING_TAB_DISPLAYER_UI
protected static final String SLIDING_TAB_BUTTON_UI
protected static final String SLIDING_BUTTON_UI
protected static final String EDITOR_TAB_CONTENT_BORDER
protected static final String EDITOR_TAB_TABS_BORDER
protected static final String EDITOR_TAB_OUTER_BORDER
protected static final String VIEW_TAB_CONTENT_BORDER
protected static final String VIEW_TAB_TABS_BORDER
protected static final String VIEW_TAB_OUTER_BORDER
protected static final String SLIDING_TAB_CONTENT_BORDER
protected static final String SLIDING_TAB_TABS_BORDER
protected static final String SLIDING_TAB_OUTER_BORDER
protected static final String TAB_ACTIVE_SELECTION_BACKGROUND
protected static final String TAB_ACTIVE_SELECTION_FOREGROUND
protected static final String TAB_SELECTION_FOREGROUND
protected static final String TAB_SELECTION_BACKGROUND
protected static final String EXPLORER_MINISTATUSBAR_BORDER
protected static final String DESKTOP_SPLITPANE_BORDER
protected static final String PROPERTYSHEET_BOOTSTRAP
protected static final String SPLIT_PANE_DIVIDER_SIZE_VERTICAL
protected static final String SPLIT_PANE_DIVIDER_SIZE_HORIZONTAL
public static final String CONTROLFONT
public static final String SYSTEMFONT
public static final String USERFONT
public static final String MENUFONT
public static final String WINDOWTITLEFONT
public static final String SUBFONT
public static final String LISTFONT
public static final String TREEFONT
public static final String PANELFONT
public static final String SPINNERFONT
public static final String PROGRESS_CANCEL_BUTTON_ICON
public static final String PROGRESS_CANCEL_BUTTON_ROLLOVER_ICON
public static final String PROGRESS_CANCEL_BUTTON_PRESSED_ICON
public static final String OPTIONS_USE_UI_DEFAULT_COLORS
public static final String OPTIONS_CATEGORIES_SEPARATOR_COLOR
public static final String OPTIONS_CATEGORIES_BUTTON_USE_NIMBUS
public static String getHexString(int color)
color
- as integer valuepublic static String getTextFgColorHTML()
public static Color getTextFgColor()
public static Color shiftColor(Color color)
color
- to shiftpublic static Color getForeground(AttributeSet a)
a
- attributeset to get color fromprotected Object[] additionalKeys()
public Object[] createLookAndFeelCustomizationKeysAndValues()
public Object[] createApplicationSpecificKeysAndValues()
public Object[] createGuaranteedKeysAndValues()
UIManager.get("controlShadow")
, you need to guarantee
that this will be non-null when fetched from UIManager - but look and feels do not guarantee this. The typical
pattern here is to put into UIManager an instance of GuaranteedValue
, i.e.
new GuaranteedValue ("controlShadow", Color.GRAY)
which will take on the value already present
if it's there, and provide a fallback if it's not.GuaranteedValue