Java Doc for GridBagConstraints.java in  » 6.0-JDK-Modules » j2me » java » awt » 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 » 6.0 JDK Modules » j2me » java.awt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.GridBagConstraints

GridBagConstraints
public class GridBagConstraints implements Cloneable,java.io.Serializable(Code)
The GridBagConstraints class specifies constraints for components that are laid out using the GridBagLayout class.
version:
   1.15, 08/19/02
author:
   Doug Stein
See Also:   java.awt.GridBagLayout
since:
   JDK1.0


Field Summary
final public static  intBOTH
     Resize the component both horizontally and vertically.
final public static  intCENTER
     Put the component in the center of its display area.
final public static  intEAST
     Put the component on the right side of its display area, centered vertically.
final public static  intHORIZONTAL
     Resize the component horizontally but not vertically.
final public static  intNONE
     Do not resize the component.
final public static  intNORTH
     Put the component at the top of its display area, centered horizontally.
final public static  intNORTHEAST
     Put the component at the top-right corner of its display area.
final public static  intNORTHWEST
     Put the component at the top-left corner of its display area.
final public static  intRELATIVE
     Specify that this component is the next-to-last component in its column or row (gridwidth, gridheight), or that this component be placed next to the previously added component (gridx, gridy).
final public static  intREMAINDER
     Specify that this component is the last component in its column or row.
final public static  intSOUTH
     Put the component at the bottom of its display area, centered horizontally.
final public static  intSOUTHEAST
     Put the component at the bottom-right corner of its display area.
final public static  intSOUTHWEST
     Put the component at the bottom-left corner of its display area.
final public static  intVERTICAL
     Resize the component vertically but not horizontally.
final public static  intWEST
     Put the component on the left side of its display area, centered vertically.
public  intanchor
     This field is used when the component is smaller than its display area.
public  intfill
     This field is used when the component's display area is larger than the component's requested size.
public  intgridheight
     Specifies the number of cells in a column for the component's display area.
public  intgridwidth
     Specifies the number of cells in a row for the component's display area.
public  intgridx
     Specifies the cell at the left of the component's display area, where the leftmost cell has gridx = 0.
public  intgridy
     Specifies the cell at the top of the component's display area, where the topmost cell has gridy = 0.
public  Insetsinsets
     This field specifies the external padding of the component, the minimum amount of space between the component and the edges of its display area.
public  intipadx
     This field specifies the internal padding of the component, how much space to add to the minimum width of the component.
public  intipady
     This field specifies the internal padding, that is, how much space to add to the minimum height of the component.
 intminWidthminHeight
    
 inttempWidthtempHeight
    
 inttempXtempY
    
public  doubleweightx
     Specifies how to distribute extra horizontal space.
public  doubleweighty
     Specifies how to distribute extra vertical space.

Constructor Summary
public  GridBagConstraints()
     Creates a GridBagConstraint object with all of its fields set to their default value.

Method Summary
public  Objectclone()
     Creates a copy of this grid bag constraint.

Field Detail
BOTH
final public static int BOTH(Code)
Resize the component both horizontally and vertically.
since:
   JDK1.0



CENTER
final public static int CENTER(Code)
Put the component in the center of its display area.
since:
   JDK1.0



EAST
final public static int EAST(Code)
Put the component on the right side of its display area, centered vertically.
since:
   JDK1.0



HORIZONTAL
final public static int HORIZONTAL(Code)
Resize the component horizontally but not vertically.
since:
   JDK1.0



NONE
final public static int NONE(Code)
Do not resize the component.
since:
   JDK1.0



NORTH
final public static int NORTH(Code)
Put the component at the top of its display area, centered horizontally.
since:
   JDK1.0



NORTHEAST
final public static int NORTHEAST(Code)
Put the component at the top-right corner of its display area.
since:
   JDK1.0



NORTHWEST
final public static int NORTHWEST(Code)
Put the component at the top-left corner of its display area.
since:
   JDK1.0



RELATIVE
final public static int RELATIVE(Code)
Specify that this component is the next-to-last component in its column or row (gridwidth, gridheight), or that this component be placed next to the previously added component (gridx, gridy).
See Also:   java.awt.GridBagConstraints.gridwidth
See Also:   java.awt.GridBagConstraints.gridheight
See Also:   java.awt.GridBagConstraints.gridx
See Also:   java.awt.GridBagConstraints.gridy
since:
   JDK1.0



REMAINDER
final public static int REMAINDER(Code)
Specify that this component is the last component in its column or row.
since:
   JDK1.0



SOUTH
final public static int SOUTH(Code)
Put the component at the bottom of its display area, centered horizontally.
since:
   JDK1.0



SOUTHEAST
final public static int SOUTHEAST(Code)
Put the component at the bottom-right corner of its display area.
since:
   JDK1.0



SOUTHWEST
final public static int SOUTHWEST(Code)
Put the component at the bottom-left corner of its display area.
since:
   JDK1.0



VERTICAL
final public static int VERTICAL(Code)
Resize the component vertically but not horizontally.
since:
   JDK1.0



WEST
final public static int WEST(Code)
Put the component on the left side of its display area, centered vertically.
since:
   JDK1.0



anchor
public int anchor(Code)
This field is used when the component is smaller than its display area. It determines where, within the display area, to place the component. Possible values are CENTER, NORTH, NORTHEAST, EAST, SOUTHEAST, SOUTH, SOUTHWEST, WEST, and NORTHWEST. The default value is CENTER.
since:
   JDK1.0



fill
public int fill(Code)
This field is used when the component's display area is larger than the component's requested size. It determines whether to resize the component, and if so, how.

The following values are valid for fill:

  • NONE: Do not resize the component.
  • HORIZONTAL: Make the component wide enough to fill its display area horizontally, but do not change its height.
  • VERTICAL: Make the component tall enough to fill its display area vertically, but do not change its width.
  • BOTH: Make the component fill its display area entirely.

The default value is NONE.
since:
   JDK1.0




gridheight
public int gridheight(Code)
Specifies the number of cells in a column for the component's display area.

Use REMAINDER to specify that the component be the last one in its column. Use RELATIVE to specify that the component be the next-to-last one in its column.

The default value is 1.
See Also:   java.awt.GridBagConstraints.gridwidth
since:
   JDK1.0




gridwidth
public int gridwidth(Code)
Specifies the number of cells in a row for the component's display area.

Use REMAINDER to specify that the component be the last one in its row. Use RELATIVE to specify that the component be the next-to-last one in its row.

The default value is 1.
See Also:   java.awt.GridBagConstraints.gridheight
since:
   JDK1.0




gridx
public int gridx(Code)
Specifies the cell at the left of the component's display area, where the leftmost cell has gridx = 0. The value RELATIVE specifies that the component be placed just to the right of the component that was added to the container just before this component was added.

The default value is RELATIVE.
See Also:   java.awt.GridBagConstraints.gridy
since:
   JDK1.0




gridy
public int gridy(Code)
Specifies the cell at the top of the component's display area, where the topmost cell has gridy = 0. The value RELATIVE specifies that the component be placed just below the component that was added to the container just before this component was added.

The default value is RELATIVE.
See Also:   java.awt.GridBagConstraints.gridx
since:
   JDK1.0




insets
public Insets insets(Code)
This field specifies the external padding of the component, the minimum amount of space between the component and the edges of its display area.

The default value is new Insets(0, 0, 0, 0).
since:
   JDK1.0




ipadx
public int ipadx(Code)
This field specifies the internal padding of the component, how much space to add to the minimum width of the component. The width of the component is at least its minimum width plus (ipadx * 2) pixels.

The default value is 0.
See Also:   java.awt.GridBagConstraints.ipady
since:
   JDK1.0




ipady
public int ipady(Code)
This field specifies the internal padding, that is, how much space to add to the minimum height of the component. The height of the component is at least its minimum height plus (ipady * 2) pixels.

The default value is 0.
See Also:   java.awt.GridBagConstraints.ipadx
since:
   JDK1.0




minWidthminHeight
int minWidthminHeight(Code)



tempWidthtempHeight
int tempWidthtempHeight(Code)



tempXtempY
int tempXtempY(Code)



weightx
public double weightx(Code)
Specifies how to distribute extra horizontal space.

The grid bag layout manager calculates the weight of a column to be the maximum weighty of all the components in a row. If the resulting layout is smaller horizontally than the area it needs to fill, the extra space is distributed to each column in proportion to its weight. A column that has a weight zero receives no extra space.

If all the weights are zero, all the extra space appears between the grids of the cell and the left and right edges.

The default value of this field is 0.
See Also:   java.awt.GridBagConstraints.weighty
since:
   JDK1.0




weighty
public double weighty(Code)
Specifies how to distribute extra vertical space.

The grid bag layout manager calculates the weight of a row to be the maximum weightx of all the components in a row. If the resulting layout is smaller vertically than the area it needs to fill, the extra space is distributed to each row in proportion to its weight. A row that has a weight of zero receives no extra space.

If all the weights are zero, all the extra space appears between the grids of the cell and the top and bottom edges.

The default value of this field is 0.
See Also:   java.awt.GridBagConstraints.weightx
since:
   JDK1.0





Constructor Detail
GridBagConstraints
public GridBagConstraints()(Code)
Creates a GridBagConstraint object with all of its fields set to their default value.
since:
   JDK1.0




Method Detail
clone
public Object clone()(Code)
Creates a copy of this grid bag constraint. a copy of this grid bag constraint
since:
   JDK1.0



Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.