Package org.jdesktop.swingx.plaf
Class LookAndFeelUtils
java.lang.Object
org.jdesktop.swingx.plaf.LookAndFeelUtils
Collection of helpers. Could move to LookAndFeelAddon?
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Color
getAsNotUIResource
(Color color) Returns a Color based on the param which is not of type UIResource.static Font
getAsNotUIResource
(Font font) Returns a Font based on the param which is not of type UIResource.static Object
getUIOfType
(ComponentUI ui, Class<?> klass) Returns the ui that is of typeklass
, or null if one can not be found.
-
Constructor Details
-
LookAndFeelUtils
public LookAndFeelUtils()
-
-
Method Details
-
getUIOfType
Returns the ui that is of typeklass
, or null if one can not be found. -
getAsNotUIResource
Returns a Font based on the param which is not of type UIResource.- Parameters:
font
- the base font- Returns:
- a font not of type UIResource, may be null.
-
getAsNotUIResource
Returns a Color based on the param which is not of type UIResource.- Parameters:
color
- the base color- Returns:
- a color not of type UIResource, may be null.
-