Class BasicGridLayout
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
- All Implemented Interfaces:
LayoutManager,LayoutManager2
- Direct Known Subclasses:
GridLayoutPlus
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected int[]protected intprotected intprotected intprotected intprotected int[]protected intprotected intprotected intFields inherited from class de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.swing.layouts.ConstraintLayout
hMargin, includeInvisible, MAXIMUM, MINIMUM, PREFERRED, vMargin -
Constructor Summary
ConstructorsConstructorDescriptionBasicGridLayout(int rows, int cols) BasicGridLayout(int rows, int cols, int hGap, int vGap) BasicGridLayout(int rows, int cols, int hGap, int vGap, int hMargin, int vMargin) -
Method Summary
Modifier and TypeMethodDescriptionprotected intalignmentFor(Component c, int row, int col) Override this to set alignment on a per-component basis.protected voidcalcCellSizes(Container target, int type) protected intOverride this to set fill on a per-component basis.intintintprotected intgetColWeight(int col) Override this to set weights on a per-column basis.intgetFill()intgetRows()intprotected intgetRowWeight(int row) Override this to set weights on a per-row basis.voidmeasureLayout(Container target, Dimension dimension, int type) voidsetAlignment(int a) voidsetColumns(int cols) voidsetColWeight(int colWeight) voidsetFill(int f) voidsetRows(int rows) voidsetRowWeight(int rowWeight) protected intsumArray(int[] array, int spacing, int size) Methods inherited from class de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.swing.layouts.ConstraintLayout
addLayoutComponent, addLayoutComponent, calcLayoutSize, getComponentSize, getConstraint, getIncludeInvisible, getLayoutAlignmentX, getLayoutAlignmentY, includeComponent, invalidateLayout, layoutContainer, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setConstraint, setIncludeInvisible
-
Field Details
-
hGap
protected int hGap -
vGap
protected int vGap -
rows
protected int rows -
cols
protected int cols -
reqRows
protected int reqRows -
reqCols
protected int reqCols -
rowHeights
protected int[] rowHeights -
colWidths
protected int[] colWidths -
alignment
protected int alignment -
fill
protected int fill -
colWeight
protected int colWeight -
rowWeight
protected int rowWeight
-
-
Constructor Details
-
BasicGridLayout
public BasicGridLayout() -
BasicGridLayout
public BasicGridLayout(int rows, int cols) -
BasicGridLayout
public BasicGridLayout(int rows, int cols, int hGap, int vGap) -
BasicGridLayout
public BasicGridLayout(int rows, int cols, int hGap, int vGap, int hMargin, int vMargin)
-
-
Method Details
-
getRows
public int getRows() -
setRows
public void setRows(int rows) -
getColumns
public int getColumns() -
setColumns
public void setColumns(int cols) -
getAlignment
public int getAlignment() -
setAlignment
public void setAlignment(int a) -
getFill
public int getFill() -
setFill
public void setFill(int f) -
getColWeight
public int getColWeight() -
setColWeight
public void setColWeight(int colWeight) -
getRowWeight
public int getRowWeight() -
setRowWeight
public void setRowWeight(int rowWeight) -
alignmentFor
Override this to set alignment on a per-component basis. -
fillFor
Override this to set fill on a per-component basis. -
getRowWeight
protected int getRowWeight(int row) Override this to set weights on a per-row basis. -
getColWeight
protected int getColWeight(int col) Override this to set weights on a per-column basis. -
sumArray
protected int sumArray(int[] array, int spacing, int size) -
calcCellSizes
-
measureLayout
- Overrides:
measureLayoutin classConstraintLayout
-