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.
|
Modifier and Type | Method and Description |
---|---|
protected CellConstraints |
PercentRowConstraintsTag.createConstraints()
Creates the constraints object.
|
protected CellConstraints |
PercentColConstraintsTag.createConstraints()
Creates the constraints object.
|
protected abstract CellConstraints |
PercentCellConstraintsTag.createConstraints()
Creates the constraints object for the string defined by the user.
|
Modifier and Type | Method and Description |
---|---|
Collection<CellConstraints> |
PercentLayoutTag.getColConstraints()
Returns the collection with the column constraints.
|
Collection<CellConstraints> |
PercentLayoutTag.getRowConstraints()
Returns the collection with the row constraints.
|
Modifier and Type | Method and Description |
---|---|
void |
PercentLayoutTag.addColConstraints(CellConstraints c)
Adds the specified constraints object to the list of column constraints.
|
protected void |
PercentRowConstraintsTag.addConstraints(PercentLayoutTag parent,
CellConstraints c)
Adds the new constraints to the percent layout tag.
|
protected void |
PercentColConstraintsTag.addConstraints(PercentLayoutTag parent,
CellConstraints c)
Adds the new constraints to the percent layout tag.
|
protected abstract void |
PercentCellConstraintsTag.addConstraints(PercentLayoutTag parent,
CellConstraints c)
Passes the newly created constraints object to the corresponding percent
layout tag.
|
void |
PercentLayoutTag.addRowConstraints(CellConstraints c)
Adds the specified constraints object to the list of row constraints.
|
Modifier and Type | Method and 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 a
CellConstraints instance for the properties defined
so far. |
CellConstraints |
CellConstraints.Builder.fromString(String spec)
Parses a string with the specification of a
CellConstraints
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.
|
Modifier and Type | Method and 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 a
CellConstraints reference for the column for the
PercentData instance to be created. |
PercentData.Builder |
PercentData.Builder.withRowConstraints(CellConstraints cc)
Sets a
CellConstraints reference for the row for the PercentData instance to be created. |
Modifier and Type | Method and Description |
---|---|
protected void |
PercentLayoutBase.initFromCollections(Collection<? extends CellConstraints> colConstr,
Collection<? extends CellConstraints> rowConstr)
Initializes this instance from the given collections with
CellConstraints objects. |
protected void |
PercentLayoutBase.initFromCollections(Collection<? extends CellConstraints> colConstr,
Collection<? extends CellConstraints> rowConstr)
Initializes this instance from the given collections with
CellConstraints objects. |
Constructor and Description |
---|
PercentLayout(Collection<? extends CellConstraints> colConstr,
Collection<? extends CellConstraints> rowConstr)
Creates a new instance of
PercentLayout and initializes it
from the specified collections with CellConstraints objects. |
PercentLayout(Collection<? extends CellConstraints> colConstr,
Collection<? extends CellConstraints> rowConstr)
Creates a new instance of
PercentLayout and initializes it
from the specified collections with CellConstraints objects. |
PercentLayoutBase(Collection<? extends CellConstraints> colConstr,
Collection<? extends CellConstraints> rowConstr)
Creates a new instance of
PercentLayoutBase and initializes
it. |
PercentLayoutBase(Collection<? extends CellConstraints> colConstr,
Collection<? extends CellConstraints> rowConstr)
Creates a new instance of
PercentLayoutBase and initializes
it. |
Copyright © 2016 The JGUIraffe Team. All rights reserved.