Java Doc for LookUtils.java in  » Swing-Library » jgoodies-looks » com » jgoodies » looks » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Swing Library » jgoodies looks » com.jgoodies.looks 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jgoodies.looks.LookUtils

LookUtils
final public class LookUtils (Code)
Provides convenience behavior used by the JGoodies Looks.
author:
   Karsten Lentzsch
version:
   $Revision: 1.9 $


Field Summary
final public static  booleanIS_JAVA_1_4
     True if this is Java 1.4.
final public static  booleanIS_JAVA_1_4_0
     True if this is Java 1.4.0_*.
final public static  booleanIS_JAVA_1_4_2_OR_LATER
     True if this is Java 1.4.2 or later.
final public static  booleanIS_JAVA_1_4_OR_5
     True if this is Java 1.4 or Java 5.
final public static  booleanIS_JAVA_5
     True if this is Java 5.x.
final public static  booleanIS_JAVA_5_OR_LATER
     True if this is Java 5.x or later.
final public static  booleanIS_JAVA_6
     True if this is Java 6.
final public static  booleanIS_JAVA_6_OR_LATER
     True if this is Java 6.x or later.
final public static  booleanIS_LAF_WINDOWS_XP_ENABLED
     True if the Windows XP Look&Feel is enabled.
final public static  booleanIS_LOW_RESOLUTION
     True if if the screen resolution is smaller than 120 dpi.
final public static  booleanIS_OS_FREEBSD
     True if this is FreeBSD.
final public static  booleanIS_OS_LINUX
     True if this is Linux.
final public static  booleanIS_OS_MAC
     True if this is the Mac OS X.
final public static  booleanIS_OS_OS2
     True if this is OS/2.
final public static  booleanIS_OS_SOLARIS
     True if this is Solaris.
final public static  booleanIS_OS_WINDOWS
     True if this is Windows.
final public static  booleanIS_OS_WINDOWS_2000
     True if this is Windows 2000.
final public static  booleanIS_OS_WINDOWS_95
     True if this is Windows 95.
final public static  booleanIS_OS_WINDOWS_98
     True if this is Windows 98.
final public static  booleanIS_OS_WINDOWS_ME
     True if this is Windows ME.
final public static  booleanIS_OS_WINDOWS_MODERN
     True if this is Windows 98/ME/2000/XP/VISTA.
final public static  booleanIS_OS_WINDOWS_NT
     True if this is Windows NT.
final public static  booleanIS_OS_WINDOWS_VISTA
     True if this is Windows Vista.
final public static  booleanIS_OS_WINDOWS_XP
     True if this is Windows XP.


Method Summary
public static  BooleangetBooleanSystemProperty(String key, String logMessage)
     Checks if a boolean system property has been set for the given key, and returns the associated Boolean, or null if no value has been set.
public static  ObjectgetDefaultTheme(LookAndFeel laf)
    
public static  ListgetInstalledThemes(LookAndFeel laf)
    
public static  ColorgetSlightlyBrighter(Color color)
     Computes and returns a Color that is slightly brighter than the specified Color.
public static  ColorgetSlightlyBrighter(Color color, float factor)
     Computes and returns a Color that is slightly brighter than the specified Color.
public static  StringgetSystemProperty(String key)
     Tries to look up the System property for the given key. In untrusted environments this may throw a SecurityException. In this case we catch the exception and answer null.
public static  StringgetSystemProperty(String key, String defaultValue)
     Tries to look up the System property for the given key. In untrusted environments this may throw a SecurityException. In this case, we catch the exception and answer the default value.
public static  booleangetToolkitUsesNativeDropShadows()
     Checks and answers whether this toolkit provides native drop shadows for popups such as the Mac OS X.
public static  booleanisTrueColor(Component c)
     Checks and answers whether we have a true color system.
public static  voidlog()
     Prints a new line to the console if logging is enabled.
public static  voidlog(String message)
     Prints the given message to the console if logging is enabled.
public static  voidsetLoggingEnabled(boolean enabled)
     Enables or disables the Looks logging.
public static  voidsetLookAndTheme(LookAndFeel laf, Object theme)
    

Field Detail
IS_JAVA_1_4
final public static boolean IS_JAVA_1_4(Code)
True if this is Java 1.4.



IS_JAVA_1_4_0
final public static boolean IS_JAVA_1_4_0(Code)
True if this is Java 1.4.0_*.



IS_JAVA_1_4_2_OR_LATER
final public static boolean IS_JAVA_1_4_2_OR_LATER(Code)
True if this is Java 1.4.2 or later. Since we assume Java 1.4 we just check for 1.4.0 and 1.4.1.



IS_JAVA_1_4_OR_5
final public static boolean IS_JAVA_1_4_OR_5(Code)
True if this is Java 1.4 or Java 5.



IS_JAVA_5
final public static boolean IS_JAVA_5(Code)
True if this is Java 5.x. We check for a prefix of 1.5.



IS_JAVA_5_OR_LATER
final public static boolean IS_JAVA_5_OR_LATER(Code)
True if this is Java 5.x or later. Since we don't support Java 1.3, we can check that it's not 1.4.



IS_JAVA_6
final public static boolean IS_JAVA_6(Code)
True if this is Java 6. We check for a prefix of 1.6.



IS_JAVA_6_OR_LATER
final public static boolean IS_JAVA_6_OR_LATER(Code)
True if this is Java 6.x or later. Since we don't support Java 1.3, we can check that it's neither 1.4 nor 1.5.



IS_LAF_WINDOWS_XP_ENABLED
final public static boolean IS_LAF_WINDOWS_XP_ENABLED(Code)
True if the Windows XP Look&Feel is enabled.



IS_LOW_RESOLUTION
final public static boolean IS_LOW_RESOLUTION(Code)
True if if the screen resolution is smaller than 120 dpi.
See Also:   Toolkit.getScreenResolution



IS_OS_FREEBSD
final public static boolean IS_OS_FREEBSD(Code)
True if this is FreeBSD.



IS_OS_LINUX
final public static boolean IS_OS_LINUX(Code)
True if this is Linux.



IS_OS_MAC
final public static boolean IS_OS_MAC(Code)
True if this is the Mac OS X.



IS_OS_OS2
final public static boolean IS_OS_OS2(Code)
True if this is OS/2.



IS_OS_SOLARIS
final public static boolean IS_OS_SOLARIS(Code)
True if this is Solaris.



IS_OS_WINDOWS
final public static boolean IS_OS_WINDOWS(Code)
True if this is Windows.



IS_OS_WINDOWS_2000
final public static boolean IS_OS_WINDOWS_2000(Code)
True if this is Windows 2000.
since:
   2.0



IS_OS_WINDOWS_95
final public static boolean IS_OS_WINDOWS_95(Code)
True if this is Windows 95.
since:
   2.0



IS_OS_WINDOWS_98
final public static boolean IS_OS_WINDOWS_98(Code)
True if this is Windows 98.
since:
   2.0



IS_OS_WINDOWS_ME
final public static boolean IS_OS_WINDOWS_ME(Code)
True if this is Windows ME.
since:
   2.0



IS_OS_WINDOWS_MODERN
final public static boolean IS_OS_WINDOWS_MODERN(Code)
True if this is Windows 98/ME/2000/XP/VISTA.



IS_OS_WINDOWS_NT
final public static boolean IS_OS_WINDOWS_NT(Code)
True if this is Windows NT.
since:
   2.0



IS_OS_WINDOWS_VISTA
final public static boolean IS_OS_WINDOWS_VISTA(Code)
True if this is Windows Vista.
since:
   2.0



IS_OS_WINDOWS_XP
final public static boolean IS_OS_WINDOWS_XP(Code)
True if this is Windows XP.





Method Detail
getBooleanSystemProperty
public static Boolean getBooleanSystemProperty(String key, String logMessage)(Code)
Checks if a boolean system property has been set for the given key, and returns the associated Boolean, or null if no value has been set. The test for the property ignores case. If a Boolean value has been set, a message is logged with the given prefix.
Parameters:
  key - the key used to lookup the system property value
Parameters:
  logMessage - a prefix used when a message is logged Boolean.TRUE if the system property has been set to "true" (case ignored), Boolean.FALSE if it has been set to "false", null otherwise



getDefaultTheme
public static Object getDefaultTheme(LookAndFeel laf)(Code)



getInstalledThemes
public static List getInstalledThemes(LookAndFeel laf)(Code)



getSlightlyBrighter
public static Color getSlightlyBrighter(Color color)(Code)
Computes and returns a Color that is slightly brighter than the specified Color.
Parameters:
  color - the color used as basis for the brightened color a slightly brighter color



getSlightlyBrighter
public static Color getSlightlyBrighter(Color color, float factor)(Code)
Computes and returns a Color that is slightly brighter than the specified Color.
Parameters:
  color - the color used as basis for the brightened color
Parameters:
  factor - the factor used to compute the brightness a slightly brighter color



getSystemProperty
public static String getSystemProperty(String key)(Code)
Tries to look up the System property for the given key. In untrusted environments this may throw a SecurityException. In this case we catch the exception and answer null.
Parameters:
  key - the name of the system property the system property's String value, or null if there'sno such value, or a SecurityException has been caught



getSystemProperty
public static String getSystemProperty(String key, String defaultValue)(Code)
Tries to look up the System property for the given key. In untrusted environments this may throw a SecurityException. In this case, we catch the exception and answer the default value.
Parameters:
  key - the name of the system property
Parameters:
  defaultValue - the default value if no property exists. the system property's String value, or the defaultValue if there's no such value, or a SecurityException has been caught



getToolkitUsesNativeDropShadows
public static boolean getToolkitUsesNativeDropShadows()(Code)
Checks and answers whether this toolkit provides native drop shadows for popups such as the Mac OS X. Currently this is used to determine if the Looks' popup drop shadow feature is active or not - even if it's enabled. true if the toolkit provides native drop shadows
See Also:   Options.isPopupDropShadowActive



isTrueColor
public static boolean isTrueColor(Component c)(Code)
Checks and answers whether we have a true color system.
Parameters:
  c - the component used to determine the toolkit true if the component's toolkit has a pixel size >= 24



log
public static void log()(Code)
Prints a new line to the console if logging is enabled.



log
public static void log(String message)(Code)
Prints the given message to the console if logging is enabled.
Parameters:
  message - the message to print



setLoggingEnabled
public static void setLoggingEnabled(boolean enabled)(Code)
Enables or disables the Looks logging.
Parameters:
  enabled - true to enable logging, false to disable it



setLookAndTheme
public static void setLookAndTheme(LookAndFeel laf, Object theme) throws UnsupportedLookAndFeelException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.