Uses of Class
net.sf.jguiraffe.gui.layout.CellConstraints
-
Packages that use CellConstraints Package Description net.sf.jguiraffe.gui.builder.components.tags A package with tag handler classes for creating GUI components.net.sf.jguiraffe.gui.layout This package contains the platform-independent base classes and helper classes for the layout managers provided by the JGUIraffe library. -
-
Uses of CellConstraints in net.sf.jguiraffe.gui.builder.components.tags
Methods in net.sf.jguiraffe.gui.builder.components.tags that return CellConstraints Modifier and Type Method Description protected abstract CellConstraints
PercentCellConstraintsTag. createConstraints()
Creates the constraints object for the string defined by the user.protected CellConstraints
PercentColConstraintsTag. createConstraints()
Creates the constraints object.protected CellConstraints
PercentRowConstraintsTag. createConstraints()
Creates the constraints object.Methods in net.sf.jguiraffe.gui.builder.components.tags that return types with arguments of type CellConstraints Modifier and Type Method Description Collection<CellConstraints>
PercentLayoutTag. getColConstraints()
Returns the collection with the column constraints.Collection<CellConstraints>
PercentLayoutTag. getRowConstraints()
Returns the collection with the row constraints.Methods in net.sf.jguiraffe.gui.builder.components.tags with parameters of type CellConstraints Modifier and Type Method Description void
PercentLayoutTag. addColConstraints(CellConstraints c)
Adds the specified constraints object to the list of column constraints.protected abstract void
PercentCellConstraintsTag. addConstraints(PercentLayoutTag parent, CellConstraints c)
Passes the newly created constraints object to the corresponding percent layout tag.protected void
PercentColConstraintsTag. addConstraints(PercentLayoutTag parent, CellConstraints c)
Adds the new constraints to the percent layout tag.protected void
PercentRowConstraintsTag. addConstraints(PercentLayoutTag parent, CellConstraints c)
Adds the new constraints to the percent layout tag.void
PercentLayoutTag. addRowConstraints(CellConstraints c)
Adds the specified constraints object to the list of row constraints. -
Uses of CellConstraints in net.sf.jguiraffe.gui.layout
Methods in net.sf.jguiraffe.gui.layout that return CellConstraints Modifier and Type Method Description protected CellConstraints
PercentLayoutBase. constraintsFor(PercentData pd, boolean vert)
Returns the constraints object for the specified percent data and the given orientation.CellConstraints
CellConstraints.Builder. create()
Returns aCellConstraints
instance for the properties defined so far.CellConstraints
CellConstraints.Builder. fromString(String spec)
Parses a string with the specification of aCellConstraints
object and returns a corresponding instance.CellConstraints[]
PercentLayoutBase. getAllColumnConstraints()
Returns an array with the current column constraints.CellConstraints[]
PercentLayoutBase. getAllRowConstraints()
Returns an array with the current row constraints.CellConstraints
PercentData. getColumnConstraints()
Returns the associated constraints object for the column.CellConstraints
PercentLayoutBase. getColumnConstraints(int idx)
Returns the column constraints object for the column with the given index.CellConstraints
PercentData. getConstraints(boolean vert)
A convenience method for determining the cell constraints object for the specified orientation.protected CellConstraints[]
PercentLayoutBase. getInternalAllColumnConstraints()
Returns the internal array of all cell constraints objects for the layout's column.protected CellConstraints[]
PercentLayoutBase. getInternalAllRowConstraints()
Returns the internal array of all cell constraints objects for the layout's rows.CellConstraints
PercentData. getRowConstraints()
Returns the associated constraints object for the row.CellConstraints
PercentLayoutBase. getRowConstraints(int idx)
Returns the row constraints object for the row with the given index.Methods in net.sf.jguiraffe.gui.layout with parameters of type CellConstraints Modifier and Type Method Description protected void
PercentLayoutBase. applyWeightFactors(int[] sizes, int containerSize, CellConstraints[] constraints, int totalWeight)
Processes the cells with a weight factor larger than 0.protected int[]
PercentLayoutBase. calcCellSizes(CellConstraints[] constraints, int count, Object container, boolean minimum, boolean vert)
Calculates the minimum size of either the columns or the rows in the layout.protected int[]
PercentLayoutBase. calcCellSizesWithGroups(CellConstraints[] constraints, int count, Collection<CellGroup> cellGroups, Object container, boolean minimum, boolean vert)
Calculates the sizes of all columns or rows.protected int
PercentLayoutBase. calcComponentSizes(CellConstraints constraints, int index, int count, Object container, boolean minimum, boolean vert)
Calculates the size of either a column or a row in the layout.int[]
PercentLayoutBase. calcSizes(CellConstraints[] constraints, int count, Collection<CellGroup> cellGroups, Object container, int containerSize, boolean vert)
Calculates the final cell sizes in one direction (horizontal or vertical).protected int
PercentLayoutBase. calcTotalWeight(CellConstraints[] constraints)
Helper method for calculating the total weight factor.protected void
PercentLayoutBase. handleMultiSpans(int[] sizes, CellConstraints[] constraints, List<net.sf.jguiraffe.gui.layout.PercentLayoutBase.CellData> components, Object container, boolean minimum, boolean vert)
Checks the sizes of components that span multiple cells.void
PercentLayoutBase. setColumnConstraints(int idx, CellConstraints cc)
Sets the column constraints object for the column with the given index.void
PercentLayoutBase. setRowConstraints(int idx, CellConstraints cc)
Sets the row constraints object for the row with the given index.PercentData.Builder
PercentData.Builder. withColumnConstraints(CellConstraints cc)
Sets aCellConstraints
reference for the column for thePercentData
instance to be created.PercentData.Builder
PercentData.Builder. withRowConstraints(CellConstraints cc)
Sets aCellConstraints
reference for the row for thePercentData
instance to be created.Method parameters in net.sf.jguiraffe.gui.layout with type arguments of type CellConstraints Modifier and Type Method Description protected void
PercentLayoutBase. initFromCollections(Collection<? extends CellConstraints> colConstr, Collection<? extends CellConstraints> rowConstr)
Initializes this instance from the given collections withCellConstraints
objects.Constructor parameters in net.sf.jguiraffe.gui.layout with type arguments of type CellConstraints Constructor Description PercentLayout(Collection<? extends CellConstraints> colConstr, Collection<? extends CellConstraints> rowConstr)
Creates a new instance ofPercentLayout
and initializes it from the specified collections withCellConstraints
objects.PercentLayoutBase(Collection<? extends CellConstraints> colConstr, Collection<? extends CellConstraints> rowConstr)
Creates a new instance ofPercentLayoutBase
and initializes it.
-