Package org.apache.jorphan.gui
Class JMeterUIDefaults
-
- All Implemented Interfaces:
public class JMeterUIDefaultsConfigures 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
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringBUTTON_SMALL_FONTpublic final static StringCHECKBOX_SMALL_FONTpublic final static StringLABEL_SMALL_FONTpublic final static StringTEXTFIELD_SMALL_FONTpublic final static StringTOOLBAR_SMALL_FONTpublic final static StringLABEL_BIG_FONTpublic final static StringTEXTAREA_BORDERpublic final static StringLABEL_WARNING_FONTpublic final static StringLABEL_WARNING_FOREGROUNDpublic final static StringLABEL_ERROR_FONTpublic final static StringLABEL_ERROR_FOREGROUNDpublic final static StringBUTTON_ERROR_FOREGROUNDpublic final static StringTABLE_ROW_HEIGHTpublic final static StringTREE_ROW_HEIGHTpublic final static JMeterUIDefaultsINSTANCEpublic floatscale
-
Method Summary
-
-
Method Detail
-
getScale
@API(since = "5.3", status = API.Status.EXPERIMENTAL) float getScale()
-
setScale
@API(since = "5.3", status = API.Status.EXPERIMENTAL) void setScale(float scale)
-
install
@API(since = "5.3", status = API.Status.INTERNAL) void install()
-
createFont
static Font createFont(String family, int style, int size)
-
-
-
-