| java.lang.Object com.izforge.izpack.gui.IzPanelLayout
Inner Class :public static class FillerComponent extends Component | |
Constructor Summary | |
public | IzPanelLayout() | public | IzPanelLayout(int colFillOutRule) Creates an layout manager which consider the given column fill out rule. |
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) | | |
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 - |
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 |
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 |
|
|