Modifier and Type | Method and Description |
---|---|
UnitValue |
DimConstraint.getAlign()
Returns the alignment used either as a default value for sub-entities or for this entity.
|
UnitValue |
DimConstraint.getAlignOrDefault(boolean isCols) |
UnitValue |
LC.getAlignX()
If the laid out components' bounds in total is less than the final size of the container these align values will be used to align the components
in the parent.
|
UnitValue |
LC.getAlignY()
If the laid out components' bounds in total is less than the final size of the container these align values will be used to align the components
in the parent.
|
static UnitValue |
PlatformDefaults.getDialogInsets(int side)
Returns the default dialog insets depending of the current platform.
|
UnitValue[] |
LC.getInsets()
The insets for the layed out panel.
|
UnitValue |
BoundSize.getMax()
Returns the maximum size as sent into the constructor.
|
UnitValue |
BoundSize.getMin()
Returns the minimum size as sent into the constructor.
|
static UnitValue |
PlatformDefaults.getMinimumButtonPadding() |
static UnitValue |
PlatformDefaults.getMinimumButtonWidth()
Returns the recommended minimum button width depending on the current set platform.
|
UnitValue[] |
CC.getPadding()
Returns the absolute resizing in the last stage of the layout cycle.
|
static UnitValue |
PlatformDefaults.getPanelInsets(int side)
Returns the default panel insets depending of the current platform.
|
UnitValue[] |
CC.getPos()
Returns the absolute positioning of one or more of the edges.
|
UnitValue[] |
LayoutCallback.getPosition(ComponentWrapper comp)
Returns a position similar to the "pos" the component constraint.
|
UnitValue |
BoundSize.getPreferred()
Returns the preferred size as sent into the constructor.
|
UnitValue[] |
UnitValue.getSubUnits() |
static UnitValue |
PlatformDefaults.getUnitValueX(String unit)
Returns the unit value associated with the unit.
|
static UnitValue |
PlatformDefaults.getUnitValueY(String unit)
Returns the unit value associated with the unit.
|
UnitValue[] |
CC.getVisualPadding()
Returns the visual padding used when laying out this Component.
|
static UnitValue[] |
ConstraintParser.parseInsets(String s,
boolean acceptPanel)
Parses insets which consists of 1-4
UnitValue s. |
static UnitValue |
ConstraintParser.parseUnitValue(String s,
boolean isHor)
Parses a single unit value.
|
static UnitValue |
ConstraintParser.parseUnitValueOrAlign(String s,
boolean isHor,
UnitValue emptyReplacement)
Parses a single unit value that may also be an alignment as parsed by
ConstraintParser.parseAlignKeywords(String, boolean) . |
Modifier and Type | Method and Description |
---|---|
boolean |
Grid.layout(int[] bounds,
UnitValue alignX,
UnitValue alignY,
boolean debug)
Does the actual layout.
|
boolean |
Grid.layout(int[] bounds,
UnitValue alignX,
UnitValue alignY,
boolean debug,
boolean notUsed)
Deprecated.
since 5.0 Last boolean is not needed and is gotten from the new
ComponentWrapper.getContentBias() instead; |
static UnitValue |
ConstraintParser.parseUnitValueOrAlign(String s,
boolean isHor,
UnitValue emptyReplacement)
Parses a single unit value that may also be an alignment as parsed by
ConstraintParser.parseAlignKeywords(String, boolean) . |
void |
DimConstraint.setAlign(UnitValue uv)
Sets the alignment used wither as a default value for sub-entities or for this entity.
|
void |
LC.setAlignX(UnitValue uv)
If the laid out components' bounds in total is less than the final size of the container these align values will be used to align the components
in the parent.
|
void |
LC.setAlignY(UnitValue uv)
If the laid out components' bounds in total is less than the final size of the container these align values will be used to align the components
in the parent.
|
static void |
PlatformDefaults.setDialogInsets(UnitValue top,
UnitValue left,
UnitValue bottom,
UnitValue right)
Sets the default insets for a dialog.
|
static void |
PlatformDefaults.setGridCellGap(UnitValue x,
UnitValue y)
Sets gap between two cells in the grid.
|
static void |
PlatformDefaults.setIndentGap(UnitValue x,
UnitValue y)
Sets gap value for components that are "intended".
|
void |
LC.setInsets(UnitValue[] ins)
The insets for the layed out panel.
|
static void |
PlatformDefaults.setMinimumButtonPadding(UnitValue padding) |
static void |
PlatformDefaults.setMinimumButtonWidth(UnitValue width)
Sets the recommended minimum button width.
|
void |
CC.setPadding(UnitValue[] sides)
Sets the absolute resizing in the last stage of the layout cycle.
|
static void |
PlatformDefaults.setPanelInsets(UnitValue top,
UnitValue left,
UnitValue bottom,
UnitValue right)
Sets the default insets for a dialog.
|
static void |
PlatformDefaults.setParagraphGap(UnitValue x,
UnitValue y)
Sets paragraph gap value for components.
|
void |
CC.setPos(UnitValue[] pos)
Sets absolute positioning of one or more of the edges.
|
static void |
PlatformDefaults.setRelatedGap(UnitValue x,
UnitValue y)
Sets gap value for components that are "related".
|
static void |
PlatformDefaults.setUnitValue(String[] unitStrings,
UnitValue x,
UnitValue y)
Sets the unit value associated with a unit string.
|
static void |
PlatformDefaults.setUnrelatedGap(UnitValue x,
UnitValue y)
Sets gap value for components that are "unrelated".
|
void |
CC.setVisualPadding(UnitValue[] sides)
Sets the visual padding used when laying out this Component.
|
Constructor and Description |
---|
BoundSize(UnitValue minMaxPref,
String createString)
Constructor that use the same value for min/preferred/max size.
|
BoundSize(UnitValue min,
UnitValue preferred,
UnitValue max,
boolean gapPush,
String createString)
Constructor.
|
BoundSize(UnitValue min,
UnitValue preferred,
UnitValue max,
String createString)
Constructor.
|
Copyright © 2007–2021. All rights reserved.