Java Doc for FormatLayout.java in  » Graphic-Library » jcommon-components » org » jfree » layout » 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 » Graphic Library » jcommon components » org.jfree.layout 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.layout.FormatLayout

FormatLayout
public class FormatLayout implements LayoutManager,Serializable(Code)
A layout manager that spaces components over six columns in seven different formats.
author:
   David Gilbert


Field Summary
final public static  intC
     A useful constant representing layout format 1.
final public static  intLC
     A useful constant representing layout format 2.
final public static  intLCB
     A useful constant representing layout format 3.
final public static  intLCBLC
     A useful constant representing layout format 6.
final public static  intLCBLCB
     A useful constant representing layout format 7.
final public static  intLCLC
     A useful constant representing layout format 4.
final public static  intLCLCB
     A useful constant representing layout format 5.

Constructor Summary
public  FormatLayout(int rowCount, int[] rowFormats)
     Constructs a new layout manager that can be used to create input forms.

Method Summary
public  voidaddLayoutComponent(Component comp)
     Not used.
public  voidaddLayoutComponent(String name, Component comp)
     Not used.
public  voidcomplete()
     Finishes of the processing.
public  voidlayoutContainer(Container parent)
     Performs the layout of the container.
public  DimensionminimumLayoutSize(Container parent)
     Returns the minimum size of the component using this layout manager.
Parameters:
  parent - the parent.
public  DimensionpreferredLayoutSize(Container parent)
     Returns the preferred size of the component using this layout manager.
Parameters:
  parent - the parent.
public  voidremoveLayoutComponent(Component comp)
     Not used.
public  voidremoveLayoutComponent(String name, Component comp)
     Not used.
protected  voidupdateC(int rowIndex, Dimension d0)
     Processes a row in 'C' format.
protected  voidupdateLC(int rowIndex, Dimension d0, Dimension d1)
     Processes a row in 'LC' format.
protected  voidupdateLCB(int rowIndex, Dimension d0, Dimension d1, Dimension d2)
     Processes a row in 'LCB' format.
protected  voidupdateLCBLC(int rowIndex, Dimension d0, Dimension d1, Dimension d2, Dimension d3, Dimension d4)
     Processes a row in 'LCBLC' format.
protected  voidupdateLCBLCB(int rowIndex, Dimension d0, Dimension d1, Dimension d2, Dimension d3, Dimension d4, Dimension d5)
     Processes a row in 'LCBLCB' format.
protected  voidupdateLCLC(int rowIndex, Dimension d0, Dimension d1, Dimension d2, Dimension d3)
     Processes a row in 'LCLC' format.
protected  voidupdateLCLCB(int rowIndex, Dimension d0, Dimension d1, Dimension d2, Dimension d3, Dimension d4)
     Processes a row in 'LCLCB' format.

Field Detail
C
final public static int C(Code)
A useful constant representing layout format 1.



LC
final public static int LC(Code)
A useful constant representing layout format 2.



LCB
final public static int LCB(Code)
A useful constant representing layout format 3.



LCBLC
final public static int LCBLC(Code)
A useful constant representing layout format 6.



LCBLCB
final public static int LCBLCB(Code)
A useful constant representing layout format 7.



LCLC
final public static int LCLC(Code)
A useful constant representing layout format 4.



LCLCB
final public static int LCLCB(Code)
A useful constant representing layout format 5.




Constructor Detail
FormatLayout
public FormatLayout(int rowCount, int[] rowFormats)(Code)
Constructs a new layout manager that can be used to create input forms. The layout manager works by arranging components in rows using six columns (some components will use more than one column).

Any component can be added, but I think of them in terms of Labels, Components, and Buttons. The formats available are: C, LC, LCB, LCLC, LCLCB, LCBLC or LCBLCB.
C 1 component in this row (spread across all six columns).
LC 2 components, a label in the 1st column, and a component using the remaining 5 columns).
LCB 3 components, a label in the 1st column, a component spread across the next 4, and a button in the last column.
LCLC 4 components, a label in column 1, a component in 2-3, a label in 4 and a component in 5-6.
LCLCB 5 components, a label in column 1, a component in 2-3, a label in 4, a component in 5 and a button in 6.
LCBLC 5 components, a label in column 1, a component in 2, a button in 3, a label in 4, a component in 5-6.
LCBLCB 6 components, one in each column.

Columns 1 and 4 expand to accommodate the widest label, and 3 and 6 to accommodate the widest button.

Each row will contain the number of components indicated by the format. Be sure to specify enough row formats to cover all the components you add to the layout.
Parameters:
  rowCount - the number of rows.
Parameters:
  rowFormats - the row formats.





Method Detail
addLayoutComponent
public void addLayoutComponent(Component comp)(Code)
Not used.
Parameters:
  comp - the component.



addLayoutComponent
public void addLayoutComponent(String name, Component comp)(Code)
Not used.
Parameters:
  name - the component name.
Parameters:
  comp - the component.



complete
public void complete()(Code)
Finishes of the processing.



layoutContainer
public void layoutContainer(Container parent)(Code)
Performs the layout of the container.
Parameters:
  parent - the parent.



minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)(Code)
Returns the minimum size of the component using this layout manager.
Parameters:
  parent - the parent. the minimum size of the component



preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)(Code)
Returns the preferred size of the component using this layout manager.
Parameters:
  parent - the parent. the preferred size of the component.



removeLayoutComponent
public void removeLayoutComponent(Component comp)(Code)
Not used.
Parameters:
  comp - the component.



removeLayoutComponent
public void removeLayoutComponent(String name, Component comp)(Code)
Not used.
Parameters:
  name - the component name.
Parameters:
  comp - the component.



updateC
protected void updateC(int rowIndex, Dimension d0)(Code)
Processes a row in 'C' format.
Parameters:
  rowIndex - the row index.
Parameters:
  d0 - dimension 0.



updateLC
protected void updateLC(int rowIndex, Dimension d0, Dimension d1)(Code)
Processes a row in 'LC' format.
Parameters:
  rowIndex - the row index.
Parameters:
  d0 - dimension 0.
Parameters:
  d1 - dimension 1.



updateLCB
protected void updateLCB(int rowIndex, Dimension d0, Dimension d1, Dimension d2)(Code)
Processes a row in 'LCB' format.
Parameters:
  rowIndex - the row index.
Parameters:
  d0 - dimension 0.
Parameters:
  d1 - dimension 1.
Parameters:
  d2 - dimension 2.



updateLCBLC
protected void updateLCBLC(int rowIndex, Dimension d0, Dimension d1, Dimension d2, Dimension d3, Dimension d4)(Code)
Processes a row in 'LCBLC' format.
Parameters:
  rowIndex - the row index.
Parameters:
  d0 - dimension 0.
Parameters:
  d1 - dimension 1.
Parameters:
  d2 - dimension 2.
Parameters:
  d3 - dimension 3.
Parameters:
  d4 - dimension 4.



updateLCBLCB
protected void updateLCBLCB(int rowIndex, Dimension d0, Dimension d1, Dimension d2, Dimension d3, Dimension d4, Dimension d5)(Code)
Processes a row in 'LCBLCB' format.
Parameters:
  rowIndex - the row index.
Parameters:
  d0 - dimension 0.
Parameters:
  d1 - dimension 1.
Parameters:
  d2 - dimension 2.
Parameters:
  d3 - dimension 3.
Parameters:
  d4 - dimension 4.
Parameters:
  d5 - dimension 5.



updateLCLC
protected void updateLCLC(int rowIndex, Dimension d0, Dimension d1, Dimension d2, Dimension d3)(Code)
Processes a row in 'LCLC' format.
Parameters:
  rowIndex - the row index.
Parameters:
  d0 - dimension 0.
Parameters:
  d1 - dimension 1.
Parameters:
  d2 - dimension 2.
Parameters:
  d3 - dimension 3.



updateLCLCB
protected void updateLCLCB(int rowIndex, Dimension d0, Dimension d1, Dimension d2, Dimension d3, Dimension d4)(Code)
Processes a row in 'LCLCB' format.
Parameters:
  rowIndex - the row index.
Parameters:
  d0 - dimension 0.
Parameters:
  d1 - dimension 1.
Parameters:
  d2 - dimension 2.
Parameters:
  d3 - dimension 3.
Parameters:
  d4 - dimension 4.



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.