Package org.omegat.gui.theme
Class DefaultFlatTheme
java.lang.Object
javax.swing.LookAndFeel
javax.swing.plaf.basic.BasicLookAndFeel
org.omegat.gui.theme.DelegatingLookAndFeel
org.omegat.gui.theme.DefaultFlatTheme
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorAdjust a color by adding some constant to its RGB values, clamping to the range 0-255.getID()getName()static voidstatic UIDefaultssetDefaults(UIDefaults defaults, String lafId) Apply theme default values to the suppliedUIDefaultsobject.static voidMethods inherited from class org.omegat.gui.theme.DelegatingLookAndFeel
getDisabledIcon, getDisabledSelectedIcon, getLayoutStyle, getSupportsWindowDecorations, initialize, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, uninitializeMethods inherited from class javax.swing.LookAndFeel
getDesktopPropertyValue, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorder
-
Constructor Details
-
DefaultFlatTheme
- Throws:
Exception
-
-
Method Details
-
loadPlugins
public static void loadPlugins() -
unloadPlugins
public static void unloadPlugins() -
getName
- Specified by:
getNamein classLookAndFeel
-
getID
- Specified by:
getIDin classLookAndFeel
-
getDescription
- Specified by:
getDescriptionin classLookAndFeel
-
getDefaults
- Overrides:
getDefaultsin classBasicLookAndFeel
-
setDefaults
Apply theme default values to the suppliedUIDefaultsobject. Suitable for third-party themes that want to modify the default theme.- Parameters:
defaults- theUIDefaultsobject such as fromLookAndFeel.getDefaults()lafId- the ID of the LAF that will make use of the defaults (fromLookAndFeel.getID())- Returns:
- the modified
UIDefaultsobject
-
adjustRGB
Adjust a color by adding some constant to its RGB values, clamping to the range 0-255.
-