Java Doc for IzPanelLayout.java in  » Installer » IzPack » com » izforge » izpack » gui » 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 » Installer » IzPack » com.izforge.izpack.gui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.izforge.izpack.gui.IzPanelLayout

IzPanelLayout
public class IzPanelLayout implements LayoutManager,LayoutManager2,LayoutConstants(Code)
This is a special layout manager for IzPanels.
author:
   Klaus Bartz

Inner Class :public static class FillerComponent extends Component

Field Summary
protected static  int[]DEFAULT_X_ALIGNMENT
    
protected static  int[]DEFAULT_X_GAPS
    
protected static  int[]DEFAULT_Y_ALIGNMENT
    
protected static  int[]DEFAULT_Y_GAPS
    

Constructor Summary
public  IzPanelLayout()
    
public  IzPanelLayout(int colFillOutRule)
     Creates an layout manager which consider the given column fill out rule.

Method Summary
public  voidaddLayoutComponent(String name, Component comp)
    
public  voidaddLayoutComponent(Component comp, Object constraints)
    
public static  ComponentcreateGap(int gapType, int direction)
     Returns a filler component which has self the size 0|0.
public static  ComponentcreateHorizontalFiller(int fillerNumber)
     Returns a filler component which has self the size 0|0.
public static  ComponentcreateHorizontalStrut(int width)
     Creates an invisible, component with a defined width.
public static  ComponentcreateParagraphGap()
     Returns a filler component which has self the size 0|0.
public static  ComponentcreateVerticalFiller(int fillerNumber)
     Returns a filler component which has self the size 0|0.
public static  ComponentcreateVerticalStrut(int height)
     Creates an invisible, component with a defined height.
public static  intgetAnchor()
     Returns the anchor constant.
public static  IzPanelConstraintsgetDefaultConstraint(int type)
     Returns the constraint for the given type.
public static  intgetDefaultTextfieldLength()
     Returns the default length used by textfields.
public static  intgetDefaultXGap(int gapId)
     Returns the default x gap for the given gap id.
public static  intgetDefaultYGap(int gapId)
     Returns the default y gap for the given gap id.
public static  doublegetFullColumnStretch()
     Returns the value which should be used stretching to a full column.
public static  doublegetFullLineStretch()
     Returns the value which should be used stretching to a full line.
public  floatgetLayoutAlignmentX(Container target)
    
public  floatgetLayoutAlignmentY(Container target)
    
public static  intgetXStretchType()
     Returns the current used type of stretching for the X-direction.
public static  intgetYStretchType()
     Returns the current used type of stretching for the Y-direction.
public  voidinvalidateLayout(Container target)
    
public  voidlayoutContainer(Container parent)
    
public  DimensionmaximumLayoutSize(Container target)
    
public  DimensionminimumLayoutSize(Container parent)
    
public  DimensionpreferredLayoutSize(Container parent)
    
public  voidremoveLayoutComponent(Component comp)
    
public static  voidsetAnchor(int anchor)
     Sets the anchor constant.
public static  voidsetDefaultTextfieldLength(int val)
     Sets the value for the default length of textfields.
public static  voidsetDefaultXGap(int gap, int gapId)
     Set the gap for the given gap id for the x default gaps.
public static  voidsetDefaultYGap(int gap, int gapId)
     Set the gap for the given gap id for the y default gaps.
public static  voidsetFullColumnStretch(double fullStretch)
     Sets the value which should be used as default for stretching to a full column.
public static  voidsetFullLineStretch(double fullLineStretch)
     Sets the value which should be used as default for stretching to a full line.
public static  voidsetXStretchType(int x_stretch)
     Sets the type of stretching to be used for the X-Direction.
public static  voidsetYStretchType(int y_stretch)
     Sets the type of stretching to be used for the Y-Direction.
public static  intverifyGapId(int gapId)
     Verifies whether a gap id is valid or not.

Field Detail
DEFAULT_X_ALIGNMENT
protected static int[] DEFAULT_X_ALIGNMENT(Code)



DEFAULT_X_GAPS
protected static int[] DEFAULT_X_GAPS(Code)



DEFAULT_Y_ALIGNMENT
protected static int[] DEFAULT_Y_ALIGNMENT(Code)



DEFAULT_Y_GAPS
protected static int[] DEFAULT_Y_GAPS(Code)




Constructor Detail
IzPanelLayout
public IzPanelLayout()(Code)
Default constructor



IzPanelLayout
public IzPanelLayout(int colFillOutRule)(Code)
Creates an layout manager which consider the given column fill out rule. Valid rules are NO_FILL_OUT_COLUMN, FILL_OUT_COLUMN_WIDTH, FILL_OUT_HEIGHT and FILL_OUT_COLUMN_SIZE
Parameters:
  colFillOutRule -




Method Detail
addLayoutComponent
public void addLayoutComponent(String name, Component comp)(Code)



addLayoutComponent
public void addLayoutComponent(Component comp, Object constraints)(Code)



createGap
public static Component createGap(int gapType, int direction)(Code)
Returns a filler component which has self the size 0|0. Additional there is a constraints which has the gap defined for the given gap type. If direction is HORIZONTAL, the x position is NEXT_COLUMN ,y position CURRENT_ROW, x and y weight 1, stretch 0.0. If direction is VERTICAL, the x position will by 0,y position NEXT_ROW, x and y weight 10, x-stretch 1.0. Add the returned component to the IzPanel. The result will be that a gap will be inserted into the layout at the current place with the width equal to the defined paragraph gap.
Parameters:
  gapType - type of gap to be used
Parameters:
  direction - direction to be used a filler component with the width of the defined paragraph gap



createHorizontalFiller
public static Component createHorizontalFiller(int fillerNumber)(Code)
Returns a filler component which has self the size 0|0. Additional there is a constraints which has the position NEXT_COLUMN ,y position CURRENT_ROW, x and y weight 1, stretch 0.0 and the gap FILLER<given filler number>_GAP. Add the returned component to the IzPanel. Attention! fillerNumber determines not directly the size of filler else the filler type. The size can be determined in the config file as modifier in the info section defining from filler1XGap to filler5XGap.
Parameters:
  fillerNumber - number of the filler which should be used a filler component with the width of the defined paragraph gap



createHorizontalStrut
public static Component createHorizontalStrut(int width)(Code)
Creates an invisible, component with a defined width. This component will be placed in the given cell of an IzPackLayout. If no constraint will be set (the default) a default constraint with NEXT_COLUMN and CURRENT_ROW will be used. This component has the height 0. The height of the row will be determined by other components in the same row.
Parameters:
  width - the width of the invisible component the component



createParagraphGap
public static Component createParagraphGap()(Code)
Returns a filler component which has self the size 0|0. Additional there is a constraints which has the x position 0,y position NEXT_ROW, x and y weight 10, x-stretch 1.0 and the y gap PARAGRAPH_GAP. Add the returned component to the IzPanel. Use NEXT_LINE (or NEXT_ROW in the constraints) for the next added control, else the layout will be confused. a filler component with the height of the defined paragraph gap



createVerticalFiller
public static Component createVerticalFiller(int fillerNumber)(Code)
Returns a filler component which has self the size 0|0. Additional there is a constraints which has the x position 0,y position NEXT_ROW, x and y weight 10, x-stretch 1.0 and the y gap FILLER<given filler number>_GAP. Add the returned component to the IzPanel. Use NEXT_LINE (or NEXT_ROW in the constraints) for the next added control, else the layout will be confused. Attention! fillerNumber determines not directly the size of filler else the filler type. The size can be determined in the config file as modifier in the info section defining from filler1YGap to filler5YGap.
Parameters:
  fillerNumber - number of the filler which should be used a filler component with the height of the defined paragraph gap



createVerticalStrut
public static Component createVerticalStrut(int height)(Code)
Creates an invisible, component with a defined height. This component will be placed in the given cell of an IzPackLayout. If no constraint will be set (the default) a default constraint with column 0 and NEXT_ROW will be used. If the next component also uses NEXT_ROW, this strut goes over the hole width with the declared height. If more components are in the row, the highest of them determines the height of the row. This component has the width 0. The width of a row will be determined by other rows.
Parameters:
  height - the height of the invisible component, in pixels >= 0 the component



getAnchor
public static int getAnchor()(Code)
Returns the anchor constant. the anchor constant



getDefaultConstraint
public static IzPanelConstraints getDefaultConstraint(int type)(Code)
Returns the constraint for the given type. Valid types are declared in the interface LayoutConstraints. Possible are LABEL_CONSTRAINT, TEXT_CONSTRAINT and CONTROL_CONSTRAINT.
Parameters:
  type - for which the constraint should be returned a copy of the default constraint for the given type



getDefaultTextfieldLength
public static int getDefaultTextfieldLength()(Code)
Returns the default length used by textfields. the default length used by textfields



getDefaultXGap
public static int getDefaultXGap(int gapId)(Code)
Returns the default x gap for the given gap id.
Parameters:
  gapId - for which the default x gap should be returned the default x gap for the given gap id



getDefaultYGap
public static int getDefaultYGap(int gapId)(Code)
Returns the default y gap for the given gap id.
Parameters:
  gapId - for which the default y gap should be returned the default x gap for the given gap id



getFullColumnStretch
public static double getFullColumnStretch()(Code)
Returns the value which should be used stretching to a full column. the value which should be used stretching to a full column



getFullLineStretch
public static double getFullLineStretch()(Code)
Returns the value which should be used stretching to a full line. the value which should be used stretching to a full line



getLayoutAlignmentX
public float getLayoutAlignmentX(Container target)(Code)



getLayoutAlignmentY
public float getLayoutAlignmentY(Container target)(Code)



getXStretchType
public static int getXStretchType()(Code)
Returns the current used type of stretching for the X-direction. Possible values are NO, RELATIVE and ABSOLUTE. the current used type of stretching for the X-direction



getYStretchType
public static int getYStretchType()(Code)
Returns the current used type of stretching for the Y-direction. Possible values are NO, RELATIVE and ABSOLUTE. the current used type of stretching for the Y-direction



invalidateLayout
public void invalidateLayout(Container target)(Code)



layoutContainer
public void layoutContainer(Container parent)(Code)



maximumLayoutSize
public Dimension maximumLayoutSize(Container target)(Code)



minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)(Code)



preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)(Code)



removeLayoutComponent
public void removeLayoutComponent(Component comp)(Code)



setAnchor
public static void setAnchor(int anchor)(Code)
Sets the anchor constant.
Parameters:
  anchor - symbolic constant to be used



setDefaultTextfieldLength
public static void setDefaultTextfieldLength(int val)(Code)
Sets the value for the default length of textfields.
Parameters:
  val - to be set as default length for textfields



setDefaultXGap
public static void setDefaultXGap(int gap, int gapId)(Code)
Set the gap for the given gap id for the x default gaps.
Parameters:
  gap - to be used as default
Parameters:
  gapId - for which the default should be set



setDefaultYGap
public static void setDefaultYGap(int gap, int gapId)(Code)
Set the gap for the given gap id for the y default gaps.
Parameters:
  gap - to be used as default
Parameters:
  gapId - for which the default should be set



setFullColumnStretch
public static void setFullColumnStretch(double fullStretch)(Code)
Sets the value which should be used as default for stretching to a full column.
Parameters:
  fullStretch - value to be used as full column stretching default



setFullLineStretch
public static void setFullLineStretch(double fullLineStretch)(Code)
Sets the value which should be used as default for stretching to a full line.
Parameters:
  fullLineStretch - value to be used as full line stretching default



setXStretchType
public static void setXStretchType(int x_stretch)(Code)
Sets the type of stretching to be used for the X-Direction. Possible values are NO, RELATIVE and ABSOLUTE.
Parameters:
  x_stretch - constant to be used for stretch type



setYStretchType
public static void setYStretchType(int y_stretch)(Code)
Sets the type of stretching to be used for the Y-Direction. Possible values are NO, RELATIVE and ABSOLUTE.
Parameters:
  y_stretch - constant to be used for stretch type



verifyGapId
public static int verifyGapId(int gapId)(Code)
Verifies whether a gap id is valid or not. If the id is less than zero, the sign will be removed. If the id is out of range, an IndexOutOfBoundsException will be thrown. The return value is the verified unsigned id.
Parameters:
  gapId - to be verified the verified gap id



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.