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

public class BasicGridLayout extends ConstraintLayout
  • 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

      protected int alignmentFor(Component c, int row, int col)
      Override this to set alignment on a per-component basis.
    • fillFor

      protected int fillFor(Component c, int row, int col)
      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

      protected void calcCellSizes(Container target, int type)
    • measureLayout

      public void measureLayout(Container target, Dimension dimension, int type)
      Overrides:
      measureLayout in class ConstraintLayout