|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.plaf.LookUtils
Provides convenience behavior used by the JGoodies Looks.
FontUtils
Field Summary | |
static boolean |
IS_JAVA_1_4
True if this is Java 1.4. |
static boolean |
IS_JAVA_1_4_2_OR_LATER
True if this is Java 1.4.2 or later. |
static boolean |
IS_LAF_WINDOWS_XP_ENABLED
True if the Windows XP Look&Feel is enabled. |
static boolean |
IS_LOW_RESOLUTION
|
static boolean |
IS_NETBEANS
True if this is a NetBeans environment. |
static boolean |
IS_OS_FREEBSD
True if this is FreeBSD. |
static boolean |
IS_OS_LINUX
True if this is Linux. |
static boolean |
IS_OS_MAC
True if this is the Mac OS X. |
static boolean |
IS_OS_OS2
True if this is OS/2. |
static boolean |
IS_OS_SOLARIS
True if this is Solaris. |
static boolean |
IS_OS_WINDOWS
True if this is Windows. |
static boolean |
IS_OS_WINDOWS_MODERN
True if this is Windows 98/ME/2000/XP. |
static boolean |
IS_OS_WINDOWS_XP
True if this is Windows XP. |
Method Summary | |
static Insets |
createButtonMargin(boolean narrow)
Creates and answers the margin used by JButton
and JToggleButton . |
static Object |
getDefaultTheme(LookAndFeel laf)
|
static List |
getInstalledThemes(LookAndFeel laf)
|
static Color |
getSlightlyBrighter(Color color)
Computes and answers a Color that is slightly brighter
than the specified Color . |
static Color |
getSlightlyBrighter(Color color,
float factor)
Computes and answers a Color that is slightly brighter
than the specified Color . |
static String |
getSystemProperty(String key)
Tries to look up the System property for the given key. |
static String |
getSystemProperty(String key,
String defaultValue)
Tries to look up the System property for the given key. |
static void |
installNarrowMargin(AbstractButton b,
String propertyPrefix)
Installs a narrow margin, if property isNarrow has been set. |
static boolean |
isTrueColor(Component c)
Checks and answers whether we have a true color system. |
static void |
log()
Prints a new line to the console if logging is enabled. |
static void |
log(String message)
Prints the given message to the console if logging is enabled. |
static void |
setLoggingEnabled(boolean enabled)
Enables or disables the logging. |
static void |
setLookAndTheme(LookAndFeel laf,
Object theme)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean IS_JAVA_1_4
public static final boolean IS_JAVA_1_4_2_OR_LATER
public static final boolean IS_OS_FREEBSD
public static final boolean IS_OS_LINUX
public static final boolean IS_OS_OS2
public static final boolean IS_OS_MAC
public static final boolean IS_OS_WINDOWS
public static final boolean IS_OS_WINDOWS_MODERN
public static final boolean IS_OS_WINDOWS_XP
public static final boolean IS_OS_SOLARIS
public static final boolean IS_LAF_WINDOWS_XP_ENABLED
public static final boolean IS_NETBEANS
public static final boolean IS_LOW_RESOLUTION
Method Detail |
public static String getSystemProperty(String key)
null
.
key
- the name of the system property
null
if there's
no such value, or a SecurityException has been catchedpublic static String getSystemProperty(String key, String defaultValue)
key
- the name of the system propertydefaultValue
- the default value if no property exists.
public static boolean isTrueColor(Component c)
c
- the component used to determine the toolkit
public static void installNarrowMargin(AbstractButton b, String propertyPrefix)
isNarrow
has been set.
b
- the button that shall get a narrow marginpropertyPrefix
- the component type prefeix for the UIDefaultspublic static Insets createButtonMargin(boolean narrow)
JButton
and JToggleButton
. Honors the screen resolution
and the global isNarrowButtonsEnabled
property.Sun's L&F implementations use wide button margins.
narrow
- true to create a narrow margin, false for a wide margin
Options.getUseNarrowButtons()
public static Color getSlightlyBrighter(Color color)
Color
that is slightly brighter
than the specified Color
. Required for 1.3 only.
color
- the color used as basis for the brightened color
public static Color getSlightlyBrighter(Color color, float factor)
Color
that is slightly brighter
than the specified Color
. Required for 1.3 only.
color
- the color used as basis for the brightened colorfactor
- the factor used to compute the brightness
public static void setLookAndTheme(LookAndFeel laf, Object theme) throws UnsupportedLookAndFeelException
UnsupportedLookAndFeelException
public static Object getDefaultTheme(LookAndFeel laf)
public static List getInstalledThemes(LookAndFeel laf)
public static void setLoggingEnabled(boolean enabled)
enabled
- true to enable logging, false to disable itpublic static void log()
public static void log(String message)
message
- the message to print
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |