Package org.apache.jorphan.gui
Class JMeterUIDefaults
java.lang.Object
org.apache.jorphan.gui.JMeterUIDefaults
Configures JMeter-specific properties as
UIDefaults
properties for on-the-fly LaF updates.
The workflow is as follows:
- LaF is initialized, and it initializes its defaults (e.g. colors, keymaps, styles)
- UIManager fires lookAndFeel property change event
- JMeterUIDefaults handles the even and augments the properties (e.g. scales fonts, adds JMeter-specific colors)
The sequence enables the components to use extra properties for styling the components
For instance, label.setForeground(Color.black)
should not be used for styling the components
as the black colour might be hard to read in certain themes. That is why the styles should be
named (e.g. LABEL_ERROR_FOREGROUND
), so the actual value could be adapted to a given
theme without making changes to the component code
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final JMeterUIDefaults
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
-
Field Details
-
BUTTON_SMALL_FONT
- See Also:
-
CHECKBOX_SMALL_FONT
- See Also:
-
LABEL_SMALL_FONT
- See Also:
-
TEXTFIELD_SMALL_FONT
- See Also:
-
TOOLBAR_SMALL_FONT
- See Also:
-
LABEL_BIG_FONT
- See Also:
-
TEXTAREA_BORDER
- See Also:
-
LABEL_WARNING_FONT
- See Also:
-
LABEL_WARNING_FOREGROUND
- See Also:
-
LABEL_ERROR_FONT
- See Also:
-
LABEL_ERROR_FOREGROUND
- See Also:
-
BUTTON_ERROR_FOREGROUND
- See Also:
-
TABLE_ROW_HEIGHT
- See Also:
-
TREE_ROW_HEIGHT
- See Also:
-
INSTANCE
-
-
Method Details
-
getScale
@API(since="5.3", status=EXPERIMENTAL) public float getScale() -
setScale
@API(since="5.3", status=EXPERIMENTAL) public void setScale(float scale) -
install
@API(since="5.3", status=INTERNAL) public void install() -
createFont
-