Java Doc for LayoutStyle.java in  » Swing-Library » jgoodies-forms » com » jgoodies » forms » util » 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 forms » com.jgoodies.forms.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jgoodies.forms.util.LayoutStyle

All known Subclasses:   com.jgoodies.forms.util.WindowsLayoutStyle,  com.jgoodies.forms.util.MacLayoutStyle,
LayoutStyle
abstract public class LayoutStyle (Code)
An abstract class that describes a layout and design style guide. It provides constants used to lay out panels consistently.

This class is work in progress and the API may change without notice. Therefore it is recommended to not write custom subclasses for production code. A future version of this class will likely collaborate with a class LogicalSize or StyledSize.
author:
   Karsten Lentzsch
version:
   $Revision: 1.4 $
See Also:   com.jgoodies.forms.util.MacLayoutStyle
See Also:   com.jgoodies.forms.util.WindowsLayoutStyle
See Also:   com.jgoodies.forms.factories.FormFactory
See Also:   com.jgoodies.forms.factories.Borders





Method Summary
abstract public  ConstantSizegetButtonBarPad()
     Returns a pad used to separate a button bar from a component.
public static  LayoutStylegetCurrent()
     Returns the current LayoutStyle.
abstract public  SizegetDefaultButtonHeight()
     Returns this style's default button height.
abstract public  SizegetDefaultButtonWidth()
     Returns this style's default button width.
abstract public  ConstantSizegetDialogMarginX()
     Returns this style's horizontal margin for general dialogs.
abstract public  ConstantSizegetDialogMarginY()
     Returns this style's vertical margin for general dialogs.
abstract public  ConstantSizegetLabelComponentPadX()
     Returns a gap used to separate a label and associated control.
abstract public  ConstantSizegetLinePad()
     Returns a narrow vertical pad used to separate lines.
abstract public  ConstantSizegetNarrowLinePad()
     Returns a narrow vertical pad used to separate lines.
abstract public  ConstantSizegetParagraphPad()
     Returns a pad used to separate paragraphs.
abstract public  ConstantSizegetRelatedComponentsPadX()
     Returns a horizontal gap used to separate related controls.
abstract public  ConstantSizegetRelatedComponentsPadY()
     Returns a vertical gap used to separate related controls.
abstract public  ConstantSizegetTabbedDialogMarginX()
     Returns this style's horizontal margin for dialogs that consist of a tabbed pane.
abstract public  ConstantSizegetTabbedDialogMarginY()
     Returns this style's vertical margin for dialogs that consist of a tabbed pane.
abstract public  ConstantSizegetUnrelatedComponentsPadX()
     Returns a horizontal gap used to separate unrelated controls.
abstract public  ConstantSizegetUnrelatedComponentsPadY()
     Returns a vertical gap used to separate unrelated controls.
abstract public  booleanisLeftToRightButtonOrder()
     Checks and answers whether buttons are typically ordered from left to right or from right to left.
public static  voidsetCurrent(LayoutStyle newLayoutStyle)
     Set a new LayoutStyle.



Method Detail
getButtonBarPad
abstract public ConstantSize getButtonBarPad()(Code)
Returns a pad used to separate a button bar from a component. a vertical pad used to separate paragraphs
since:
   1.0.3
See Also:   LayoutStyle.getRelatedComponentsPadY()
See Also:   LayoutStyle.getUnrelatedComponentsPadY()



getCurrent
public static LayoutStyle getCurrent()(Code)
Returns the current LayoutStyle. the current LayoutStyle



getDefaultButtonHeight
abstract public Size getDefaultButtonHeight()(Code)
Returns this style's default button height. the default button height
See Also:   LayoutStyle.getDefaultButtonWidth()



getDefaultButtonWidth
abstract public Size getDefaultButtonWidth()(Code)
Returns this style's default button width. the default button width
See Also:   LayoutStyle.getDefaultButtonHeight()



getDialogMarginX
abstract public ConstantSize getDialogMarginX()(Code)
Returns this style's horizontal margin for general dialogs. the horizontal margin for general dialogs
See Also:   LayoutStyle.getDialogMarginY()
See Also:   LayoutStyle.getTabbedDialogMarginX()



getDialogMarginY
abstract public ConstantSize getDialogMarginY()(Code)
Returns this style's vertical margin for general dialogs. the vertical margin for general dialogs
See Also:   LayoutStyle.getDialogMarginX()
See Also:   LayoutStyle.getTabbedDialogMarginY()



getLabelComponentPadX
abstract public ConstantSize getLabelComponentPadX()(Code)
Returns a gap used to separate a label and associated control. a gap between label and associated control
See Also:   LayoutStyle.getRelatedComponentsPadX()
See Also:   LayoutStyle.getUnrelatedComponentsPadX()



getLinePad
abstract public ConstantSize getLinePad()(Code)
Returns a narrow vertical pad used to separate lines. a vertical pad used to separate lines
See Also:   LayoutStyle.getNarrowLinePad()
See Also:   LayoutStyle.getParagraphPad()



getNarrowLinePad
abstract public ConstantSize getNarrowLinePad()(Code)
Returns a narrow vertical pad used to separate lines. a narrow vertical pad used to separate lines
See Also:   LayoutStyle.getLinePad()
See Also:   LayoutStyle.getParagraphPad()



getParagraphPad
abstract public ConstantSize getParagraphPad()(Code)
Returns a pad used to separate paragraphs. a vertical pad used to separate paragraphs
See Also:   LayoutStyle.getNarrowLinePad()
See Also:   LayoutStyle.getLinePad()



getRelatedComponentsPadX
abstract public ConstantSize getRelatedComponentsPadX()(Code)
Returns a horizontal gap used to separate related controls. a horizontal gap between related controls
See Also:   LayoutStyle.getLabelComponentPadX()
See Also:   LayoutStyle.getRelatedComponentsPadY()
See Also:   LayoutStyle.getUnrelatedComponentsPadX()



getRelatedComponentsPadY
abstract public ConstantSize getRelatedComponentsPadY()(Code)
Returns a vertical gap used to separate related controls. a vertical gap between related controls
See Also:   LayoutStyle.getRelatedComponentsPadX()
See Also:   LayoutStyle.getUnrelatedComponentsPadY()



getTabbedDialogMarginX
abstract public ConstantSize getTabbedDialogMarginX()(Code)
Returns this style's horizontal margin for dialogs that consist of a tabbed pane. the horizontal margin for dialogs that consist of a tabbed pane
since:
   1.0.3
See Also:   LayoutStyle.getTabbedDialogMarginY()
See Also:   LayoutStyle.getDialogMarginX()



getTabbedDialogMarginY
abstract public ConstantSize getTabbedDialogMarginY()(Code)
Returns this style's vertical margin for dialogs that consist of a tabbed pane. the vertical margin for dialogs that consist of a tabbed pane
since:
   1.0.3
See Also:   LayoutStyle.getTabbedDialogMarginX()
See Also:   LayoutStyle.getDialogMarginY()



getUnrelatedComponentsPadX
abstract public ConstantSize getUnrelatedComponentsPadX()(Code)
Returns a horizontal gap used to separate unrelated controls. a horizontal gap between unrelated controls
See Also:   LayoutStyle.getLabelComponentPadX()
See Also:   LayoutStyle.getUnrelatedComponentsPadY()
See Also:   LayoutStyle.getRelatedComponentsPadX()



getUnrelatedComponentsPadY
abstract public ConstantSize getUnrelatedComponentsPadY()(Code)
Returns a vertical gap used to separate unrelated controls. a vertical gap between unrelated controls
See Also:   LayoutStyle.getUnrelatedComponentsPadX()
See Also:   LayoutStyle.getRelatedComponentsPadY()



isLeftToRightButtonOrder
abstract public boolean isLeftToRightButtonOrder()(Code)
Checks and answers whether buttons are typically ordered from left to right or from right to left. Useful for building button bars that shall comply with the platform's layout style guide.

For example the Windows style guide recommends to layout out OK, Cancel, Apply from left to right, where the Mac Aqua style guide recommends to layout out these buttons from right to left.

Although most button sequences shall honor this order some buttons require a left to right order. For example Back, Next or Move Left, Move Right.

true if buttons are typically ordered from left to right
since:
   1.0.3
See Also:   com.jgoodies.forms.builder.ButtonBarBuilder
See Also:   com.jgoodies.forms.factories.ButtonBarFactory




setCurrent
public static void setCurrent(LayoutStyle newLayoutStyle)(Code)
Set a new LayoutStyle.
Parameters:
  newLayoutStyle - the style to be set



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.