Java Doc for Options.java in  » Swing-Library » substance-look-feel » contrib » 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 » substance look feel » contrib.com.jgoodies.looks 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   contrib.com.jgoodies.looks.Options

Options
final public class Options (Code)
Provides access to several optional properties for the JGoodies L&Fs, either by a key to the UIDefaults table or via a method or both.
author:
   Karsten Lentzsch
version:
   $Revision: 1.3 $


Field Summary
final public static  StringCONTROL_FONT_KEY
    
final public static  StringDEFAULT_ICON_SIZE_KEY
    
final public static  StringDEFAULT_LOOK_NAME
    
final public static  StringEMBEDDED_TABS_KEY
     A client property key for JTabbedPanes that indicates that tabs are painted with a special embedded appearance.
final public static  StringEXT_WINDOWS_NAME
     This outdated constant will be removed in the Looks version 1.4.
final public static  StringFONT_SIZE_HINTS_KEY
    
final public static  StringHEADER_STYLE_KEY
     Hint for the style: Single or Both, see HeaderStyle.
final public static  StringIS_ETCHED_KEY
    
final public static  StringIS_NARROW_KEY
     Hint that the button margin should be narrow.
final public static  StringJGOODIES_WINDOWS_NAME
    
final public static  StringMENU_FONT_KEY
    
final public static  StringNO_CONTENT_BORDER_KEY
     A client property key for JTabbedPanes that indicates that no content border shall be painted.
final public static  StringNO_ICONS_KEY
    
final public static  StringPLASTIC3D_NAME
    
final public static  StringPLASTICXP_NAME
    
final public static  StringPLASTIC_NAME
    
final public static  StringPOPUP_DROP_SHADOW_ENABLED_KEY
    
final public static  StringTAB_ICONS_ENABLED_KEY
    
final public static  StringTREE_LINE_STYLE_ANGLED_VALUE
     A client property value for JTrees that indicates that lines shall be drawn.
final public static  StringTREE_LINE_STYLE_KEY
     A client property key for JTrees.
final public static  StringTREE_LINE_STYLE_NONE_VALUE
     A client property value for JTrees that indicates that lines shall be hidden.
final public static  StringUSE_NARROW_BUTTONS_KEY
    
final public static  StringUSE_SYSTEM_FONTS_APP_KEY
    
final public static  StringUSE_SYSTEM_FONTS_KEY
    


Method Summary
public static  StringgetCrossPlatformLookAndFeelClassName()
     Returns the class name for a cross-platform LookAndFeel.
public static  DimensiongetDefaultIconSize()
     Returns the default icon size that is used in menus, menu items and toolbars.
public static  FontSizeHintsgetGlobalFontSizeHints()
     Returns the global FontSizeHints that can be overriden by a look-specific setting.
public static  StringgetReplacementClassNameFor(String className)
     Returns the class name that can be used to replace the specified LookAndFeel class name.
public static  StringgetSystemLookAndFeelClassName()
     Returns the class name for a system specific LookAndFeel.
public static  booleangetUseNarrowButtons()
     Checks and answers if we shall use narrow button margins of 4 pixels.
public static  booleangetUseSystemFonts()
     Returns whether a hint is set in the UIManager that indicates, that a look&feel may use the native system fonts.
public static  voidinitializeDefaultReplacements()
     Initializes some default class name replacements, that replace Sun's Java look and feel, and Sun's Windows look and feel by the appropriate JGoodies replacements.
public static  booleanisPopupDropShadowActive()
     Checks and answers whether popup drop shadows are active.
public static  booleanisPopupDropShadowEnabled()
     Checks and answers whether the optional drop shadows for PopupMenus are enabled or disabled.
public static  booleanisTabIconsEnabled()
     Checks and answers if we shall use icons in JTabbedPanes. By default, tab icons are enabled.
public static  voidputLookAndFeelReplacement(String original, String replacement)
     Puts a replacement name for a given LookAndFeel class name in the list of all look and feel replacements.
public static  voidremoveLookAndFeelReplacement(String original)
     Removes a replacement name for a given LookAndFeel class name from the list of all look and feel replacements.
public static  voidsetDefaultIconSize(Dimension defaultIconSize)
     Sets the default icon size.
public static  voidsetGlobalFontSizeHints(FontSizeHints hints)
     Sets the global FontSizeHints.
public static  voidsetPopupDropShadowEnabled(boolean b)
     Enables or disables drop shadows in PopupMenus.
public static  voidsetTabIconsEnabled(boolean b)
     Enables or disables the use of icons in JTabbedPanes.
public static  voidsetUseNarrowButtons(boolean b)
     Sets if we use narrow or standard button margins.
public static  voidsetUseSystemFonts(boolean useSystemFonts)
     Sets a value in the UIManager to indicate, that a look&feel may use the native system fonts.

Field Detail
CONTROL_FONT_KEY
final public static String CONTROL_FONT_KEY(Code)



DEFAULT_ICON_SIZE_KEY
final public static String DEFAULT_ICON_SIZE_KEY(Code)



DEFAULT_LOOK_NAME
final public static String DEFAULT_LOOK_NAME(Code)



EMBEDDED_TABS_KEY
final public static String EMBEDDED_TABS_KEY(Code)
A client property key for JTabbedPanes that indicates that tabs are painted with a special embedded appearance. Supported by the Plastic look&feel family. This effect will be achieved also if the EMBEDDED property is true.



EXT_WINDOWS_NAME
final public static String EXT_WINDOWS_NAME(Code)
This outdated constant will be removed in the Looks version 1.4. Options.JGOODIES_WINDOWS_NAME



FONT_SIZE_HINTS_KEY
final public static String FONT_SIZE_HINTS_KEY(Code)



HEADER_STYLE_KEY
final public static String HEADER_STYLE_KEY(Code)
Hint for the style: Single or Both, see HeaderStyle.



IS_ETCHED_KEY
final public static String IS_ETCHED_KEY(Code)
Hint that the scroll pane border should be etched.



IS_NARROW_KEY
final public static String IS_NARROW_KEY(Code)
Hint that the button margin should be narrow.



JGOODIES_WINDOWS_NAME
final public static String JGOODIES_WINDOWS_NAME(Code)



MENU_FONT_KEY
final public static String MENU_FONT_KEY(Code)



NO_CONTENT_BORDER_KEY
final public static String NO_CONTENT_BORDER_KEY(Code)
A client property key for JTabbedPanes that indicates that no content border shall be painted. Supported by the Plastic look&feel family. This effect will be achieved also if the EMBEDDED property is true.



NO_ICONS_KEY
final public static String NO_ICONS_KEY(Code)
Hint that the menu items in the menu have no icons.



PLASTIC3D_NAME
final public static String PLASTIC3D_NAME(Code)



PLASTICXP_NAME
final public static String PLASTICXP_NAME(Code)



PLASTIC_NAME
final public static String PLASTIC_NAME(Code)



POPUP_DROP_SHADOW_ENABLED_KEY
final public static String POPUP_DROP_SHADOW_ENABLED_KEY(Code)



TAB_ICONS_ENABLED_KEY
final public static String TAB_ICONS_ENABLED_KEY(Code)



TREE_LINE_STYLE_ANGLED_VALUE
final public static String TREE_LINE_STYLE_ANGLED_VALUE(Code)
A client property value for JTrees that indicates that lines shall be drawn.



TREE_LINE_STYLE_KEY
final public static String TREE_LINE_STYLE_KEY(Code)
A client property key for JTrees. Used with the angled and none style values.



TREE_LINE_STYLE_NONE_VALUE
final public static String TREE_LINE_STYLE_NONE_VALUE(Code)
A client property value for JTrees that indicates that lines shall be hidden.



USE_NARROW_BUTTONS_KEY
final public static String USE_NARROW_BUTTONS_KEY(Code)



USE_SYSTEM_FONTS_APP_KEY
final public static String USE_SYSTEM_FONTS_APP_KEY(Code)



USE_SYSTEM_FONTS_KEY
final public static String USE_SYSTEM_FONTS_KEY(Code)





Method Detail
getCrossPlatformLookAndFeelClassName
public static String getCrossPlatformLookAndFeelClassName()(Code)
Returns the class name for a cross-platform LookAndFeel. the name of a cross platform look-and-feel class
See Also:   Options.getSystemLookAndFeelClassName()



getDefaultIconSize
public static Dimension getDefaultIconSize()(Code)
Returns the default icon size that is used in menus, menu items and toolbars. Menu items that have no icon set are aligned using the default icon dimensions. the dimension of the default icon
See Also:   Options.setDefaultIconSize(Dimension)



getGlobalFontSizeHints
public static FontSizeHints getGlobalFontSizeHints()(Code)
Returns the global FontSizeHints that can be overriden by a look-specific setting. the gobally used FontSizeHints object
See Also:   Options.setGlobalFontSizeHints(FontSizeHints)



getReplacementClassNameFor
public static String getReplacementClassNameFor(String className)(Code)
Returns the class name that can be used to replace the specified LookAndFeel class name.
Parameters:
  className - the name of the look-and-feel class the name of the suggested replacement class
See Also:   Options.putLookAndFeelReplacement(String,String)
See Also:   Options.removeLookAndFeelReplacement(String)
See Also:   Options.initializeDefaultReplacements()



getSystemLookAndFeelClassName
public static String getSystemLookAndFeelClassName()(Code)
Returns the class name for a system specific LookAndFeel. the name of the system look-and-feel class
See Also:   Options.getCrossPlatformLookAndFeelClassName()



getUseNarrowButtons
public static boolean getUseNarrowButtons()(Code)
Checks and answers if we shall use narrow button margins of 4 pixels. Sun's L&F implementations use a much wider button margin of 14 pixels, which leads to good button minimum width in the typical case.

Using narrow button margins can potentially cause compatibility issues, so this feature must be switched on programmatically.

If you use narrow margin, you should take care of minimum button width, either by the layout management or appropriate ButtonUI minimum widths. true if all buttons shall use narrow margins
See Also:   Options.setUseNarrowButtons(boolean)




getUseSystemFonts
public static boolean getUseSystemFonts()(Code)
Returns whether a hint is set in the UIManager that indicates, that a look&feel may use the native system fonts. true if the UIManager indicates that system fonts shall be used
See Also:   Options.setUseSystemFonts(boolean)



initializeDefaultReplacements
public static void initializeDefaultReplacements()(Code)
Initializes some default class name replacements, that replace Sun's Java look and feel, and Sun's Windows look and feel by the appropriate JGoodies replacements.
See Also:   Options.putLookAndFeelReplacement(String,String)
See Also:   Options.removeLookAndFeelReplacement(String)
See Also:   Options.getReplacementClassNameFor(String)



isPopupDropShadowActive
public static boolean isPopupDropShadowActive()(Code)
Checks and answers whether popup drop shadows are active. This feature shall be inactive with toolkits that use native drop shadows, such as Aqua on the Mac OS X. It is also inactive if the ShadowPopup cannot snapshot the desktop background (due to security and AWT exceptions). Otherwise the feature's enablement state is returned.

Currently only the Mac OS X is detected as platform where the toolkit uses native drop shadows. true if drop shadows are active, false if inactive
See Also:   Options.isPopupDropShadowEnabled()
See Also:   Options.setPopupDropShadowEnabled(boolean)




isPopupDropShadowEnabled
public static boolean isPopupDropShadowEnabled()(Code)
Checks and answers whether the optional drop shadows for PopupMenus are enabled or disabled. true if drop shadows are enabled, false if disabled
See Also:   Options.isPopupDropShadowActive()
See Also:   Options.setPopupDropShadowEnabled(boolean)



isTabIconsEnabled
public static boolean isTabIconsEnabled()(Code)
Checks and answers if we shall use icons in JTabbedPanes. By default, tab icons are enabled. If the user has set a system property, we log a message about the choosen style. true if icons in tabbed panes are enabled, false if disabled
See Also:   Options.setTabIconsEnabled(boolean)



putLookAndFeelReplacement
public static void putLookAndFeelReplacement(String original, String replacement)(Code)
Puts a replacement name for a given LookAndFeel class name in the list of all look and feel replacements.
Parameters:
  original - the name of the look-and-feel to replace
Parameters:
  replacement - the name of the replacement look-and-feel
See Also:   Options.removeLookAndFeelReplacement(String)
See Also:   Options.getReplacementClassNameFor(String)



removeLookAndFeelReplacement
public static void removeLookAndFeelReplacement(String original)(Code)
Removes a replacement name for a given LookAndFeel class name from the list of all look and feel replacements.
Parameters:
  original - the name of the look-and-feel that has been replaced
See Also:   Options.putLookAndFeelReplacement(String,String)
See Also:   Options.getReplacementClassNameFor(String)



setDefaultIconSize
public static void setDefaultIconSize(Dimension defaultIconSize)(Code)
Sets the default icon size.
Parameters:
  defaultIconSize - the default icon size to set
See Also:   Options.getDefaultIconSize()



setGlobalFontSizeHints
public static void setGlobalFontSizeHints(FontSizeHints hints)(Code)
Sets the global FontSizeHints.
Parameters:
  hints - the FontSizeHints object to be used globally
See Also:   Options.getGlobalFontSizeHints()



setPopupDropShadowEnabled
public static void setPopupDropShadowEnabled(boolean b)(Code)
Enables or disables drop shadows in PopupMenus. Note that drop shadows are always inactive on platforms that provide native drop shadows such as the Mac OS X.

It is recommended to enable this feature only on platforms that accelerate translucency and snapshots with the hardware.
Parameters:
  b - true to enable drop shadows, false to disable them
See Also:   Options.isPopupDropShadowActive()
See Also:   Options.isPopupDropShadowEnabled()




setTabIconsEnabled
public static void setTabIconsEnabled(boolean b)(Code)
Enables or disables the use of icons in JTabbedPanes.
Parameters:
  b - true to enable icons in tabbed panes, false to disable them
See Also:   Options.isTabIconsEnabled()



setUseNarrowButtons
public static void setUseNarrowButtons(boolean b)(Code)
Sets if we use narrow or standard button margins.
Parameters:
  b - true to use narrow button margins globally
See Also:   Options.getUseNarrowButtons()



setUseSystemFonts
public static void setUseSystemFonts(boolean useSystemFonts)(Code)
Sets a value in the UIManager to indicate, that a look&feel may use the native system fonts.
Parameters:
  useSystemFonts - true to enable system fonts in the UIManager
See Also:   Options.getUseSystemFonts()



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.