Class GridLayoutPlus
java.lang.Object
de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.swing.layouts.ConstraintLayout
de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.swing.layouts.BasicGridLayout
de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.swing.layouts.GridLayoutPlus
- All Implemented Interfaces:
LayoutManager,LayoutManager2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int[]protected int[]protected int[]Fields inherited from class de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.swing.layouts.BasicGridLayout
alignment, cols, colWeight, colWidths, fill, hGap, reqCols, reqRows, rowHeights, rows, rowWeight, vGapFields inherited from class de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.swing.layouts.ConstraintLayout
hMargin, includeInvisible, MAXIMUM, MINIMUM, PREFERRED, vMargin -
Constructor Summary
ConstructorsConstructorDescriptionGridLayoutPlus(int rows, int cols) GridLayoutPlus(int rows, int cols, int hGap, int vGap) GridLayoutPlus(int rows, int cols, int hGap, int vGap, int hMargin, int vMargin) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(String name, Component comp) Adds the specified named component to the layout.protected intalignmentFor(Component c, int row, int col) Override this to set alignment on a per-component basis.protected intOverride this to set fill on a per-component basis.protected intgetColAlignment(int col) protected intgetColWeight(int col) Override this to set weights on a per-column basis.protected intgetRowWeight(int row) Override this to set weights on a per-row basis.voidRemoves the specified component from the layout.voidsetColAlignment(int col, int v) voidsetColWeight(int col, int weight) voidsetRowWeight(int row, int weight) protected intweightForColumn(int col) protected intweightForColumn(int row, int col) Methods inherited from class de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.swing.layouts.BasicGridLayout
calcCellSizes, getAlignment, getColumns, getColWeight, getFill, getRows, getRowWeight, measureLayout, setAlignment, setColumns, setColWeight, setFill, setRows, setRowWeight, sumArrayMethods inherited from class de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.swing.layouts.ConstraintLayout
addLayoutComponent, calcLayoutSize, getComponentSize, getConstraint, getIncludeInvisible, getLayoutAlignmentX, getLayoutAlignmentY, includeComponent, invalidateLayout, layoutContainer, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, setConstraint, setIncludeInvisible
-
Field Details
-
rowWeights
protected int[] rowWeights -
colWeights
protected int[] colWeights -
colFlags
protected int[] colFlags
-
-
Constructor Details
-
GridLayoutPlus
public GridLayoutPlus() -
GridLayoutPlus
public GridLayoutPlus(int rows, int cols) -
GridLayoutPlus
public GridLayoutPlus(int rows, int cols, int hGap, int vGap) -
GridLayoutPlus
public GridLayoutPlus(int rows, int cols, int hGap, int vGap, int hMargin, int vMargin)
-
-
Method Details
-
setRowWeight
public void setRowWeight(int row, int weight) -
setColWeight
public void setColWeight(int col, int weight) -
setColAlignment
public void setColAlignment(int col, int v) -
getRowWeight
protected int getRowWeight(int row) Description copied from class:BasicGridLayoutOverride this to set weights on a per-row basis.- Overrides:
getRowWeightin classBasicGridLayout
-
getColWeight
protected int getColWeight(int col) Description copied from class:BasicGridLayoutOverride this to set weights on a per-column basis.- Overrides:
getColWeightin classBasicGridLayout
-
getColAlignment
protected int getColAlignment(int col) -
addLayoutComponent
Adds the specified named component to the layout.- Specified by:
addLayoutComponentin interfaceLayoutManager- Overrides:
addLayoutComponentin classConstraintLayout- Parameters:
name- the String namecomp- the component to be added
-
removeLayoutComponent
Removes the specified component from the layout.- Specified by:
removeLayoutComponentin interfaceLayoutManager- Overrides:
removeLayoutComponentin classConstraintLayout- Parameters:
comp- the component to be removed
-
alignmentFor
Description copied from class:BasicGridLayoutOverride this to set alignment on a per-component basis.- Overrides:
alignmentForin classBasicGridLayout
-
fillFor
Description copied from class:BasicGridLayoutOverride this to set fill on a per-component basis.- Overrides:
fillForin classBasicGridLayout
-
weightForColumn
protected int weightForColumn(int col) -
weightForColumn
protected int weightForColumn(int row, int col)
-