| Package | Description |
|---|---|
| com.codename1.ui.layouts |
Layout managers allow a
Container to
arrange its components by a set of rules that adapt to specific
densities (ppi - pixels per inch). |
| Modifier and Type | Method and Description |
|---|---|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.constraint()
Gets the constraint itself.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.Inset.constraint()
Gets the constraint that contains this inset.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.copy()
Makes a full copy of this inset.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.copyTo(LayeredLayout.LayeredLayoutConstraint dest)
Copies the settings of this constraint into another constraint.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.createConstraint()
Creates a new
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.createConstraint(String constraint)
Creates a default layered layout constraint.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.fixDependencies(Container parent)
Recursively fixes all dependencies so that they are contained inside
the provided parent.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.getLayeredLayoutConstraint(Component cmp)
Wraps
LayeredLayout.getComponentConstraint(com.codename1.ui.Component) and casts it
directly to LayeredLayout.LayeredLayoutConstraint. |
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.getOrCreateConstraint(Component cmp)
If the given component already has a LayeredLayoutConstraint, then this
will return it.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.setInsets(String insetStr)
Sets the insets for this constraint as a string.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.setPercentInsetAnchorHorizontal(float anchor)
Sets the anchor used for left and right percentage insets.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.setPercentInsetAnchorVertical(float anchor)
Sets the anchor used for top and bottom percentage insets.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.setReferenceComponentIndices(Container parent,
String indices)
Sets the reference components of the insets of this constraint as indices of the provided parent
container.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.setReferenceComponents(Component... refs)
Sets the reference components for the constraint.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.setReferencePositions(float... p)
Sets the reference positions for the constraint.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.setReferencePositions(String positionsStr)
Sets the reference component positions for this constraint from a string.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.translateMM(float x,
float y,
boolean preferMM,
Container parent)
Shifts the constraint by the specified number of millimetres while maintaining the same units.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.translatePixels(int x,
int y,
boolean preferMM,
Container parent)
Shifts the constraint by the specified number of pixels while maintaining the same units.
|
| Modifier and Type | Method and Description |
|---|---|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.copyTo(LayeredLayout.LayeredLayoutConstraint dest)
Copies the settings of this constraint into another constraint.
|
LayeredLayout.LayeredLayoutConstraint.Inset |
LayeredLayout.LayeredLayoutConstraint.Inset.copyTo(LayeredLayout.LayeredLayoutConstraint dest)
Copies this inset to the corresponding inset of the provided constraint.
|
Copyright © 2021. All rights reserved.