- All Implemented Interfaces:
Externalizable,Serializable
LC layout manager.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal LCSets both the alignX and alignY as the same time.final LCSame functionality assetAlignX(ConstraintParser.parseUnitValueOrAlign(unitValue, true))only this method returnsthisfor chaining multiple calls.final LCSame functionality assetAlignY(ConstraintParser.parseUnitValueOrAlign(align, false))only this method returnsthisfor chaining multiple calls.final LCSame functionality as} only this method returnsinvalid @link
{@link #setTopToBottom(boolean false)thisfor chaining multiple calls.final LCdebug(int repaintMillis) Same functionality assetDebugMillis(int repaintMillis)only this method returnsthisfor chaining multiple calls.final LCfill()Same functionality as} andinvalid @link
{@link #setFillX(boolean true)} conmbined.T his method returnsinvalid @link
{@link #setFillY(boolean true)thisfor chaining multiple calls.final LCfillX()Same functionality as} only this method returnsinvalid @link
{@link #setFillX(boolean true)thisfor chaining multiple calls.final LCfillY()Same functionality as} only this method returnsinvalid @link
{@link #setFillY(boolean true)thisfor chaining multiple calls.final LCflowX()Same functionality as} only this method returnsinvalid @link
{@link #setFlowX(boolean true)thisfor chaining multiple calls.final LCflowY()Same functionality as} only this method returnsinvalid @link
{@link #setFlowX(boolean false)thisfor chaining multiple calls.final UnitValueIf 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.final UnitValueIf 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.final intIf> 0the debug decorations will be repainted everymillis.final BoundSizeIf non-null(nullis default) these value will be used as the default gaps between the columns in the grid.final BoundSizeIf non-null(nullis default) these value will be used as the default gaps between the rows in the grid.final BoundSizeReturns the minimum/preferred/maximum size for the container that this layout constraint is set for.final intHow a component that is hidden (not visible) should be treated by default.final UnitValue[]The insets for the layed out panel.final BooleanIf the layout should be forced to be left-to-right or right-to-left.final BoundSizeReturns the "pack height" for the window that this container is located in.final floatIf there is a resize of the window due to packing (seesetPackHeight(BoundSize)this value, which is between 0f and 1f, decides where the extra/surpurflous size is placed. 0f means that the window will resize so that the upper part moves up and the lower side stays in the same place. 0.5f will expand/reduce the window equally upwards and downwards. 1f will do the opposite of 0f of course.final BoundSizeReturns the "pack width" for the window that this container is located in.final floatIf there is a resize of the window due to packing (seesetPackHeight(BoundSize)this value, which is between 0f and 1f, decides where the extra/surpurflous size is placed. 0f means that the window will resize so that the left part moves left and the right side stays in the same place. 0.5f will expand/reduce the window equally to the right and lefts. 1f will do the opposite of 0f of course.final BoundSizegetWidth()Returns the minimum/preferred/maximum size for the container that this layout constraint is set for.final intReturns after what cell the grid should always auto wrap.final LCSets both grid gaps at the same time. seegridGapX(String)andgridGapY(String).final LCSame functionality assetGridGapX(ConstraintParser.parseBoundSize(boundsSize, true, true))only this method returnsthisfor chaining multiple calls.final LCSame functionality assetGridGapY(ConstraintParser.parseBoundSize(boundsSize, true, false))only this method returnsthisfor chaining multiple calls.final LCThe height for the container as a min and/or preferref and/or maximum height.final LChideMode(int mode) Same functionality assetHideMode(int mode)only this method returnsthisfor chaining multiple calls.final LCSame functionality assetInsets(ConstraintParser.parseInsets(s, true)).final LCSets the different insets (expressed as aUnitValues, e.g. "10px" or "20mm") for the corresponding sides.final LCSets the same inset (expressed as aUnitValue, e.g. "10px" or "20mm") all around.final booleanisFillX()If the layout should always claim the whole bounds of the laid out container even if the preferred size is smaller.final booleanisFillY()If the layout should always claim the whole bounds of the laid out container even if the preferred size is smaller.final booleanisFlowX()The default flow direction.booleanIf components have sizes or positions linked to the bounds of the parent in some way (as for instance the"%"unit has) the cache must be turned off for the panel.final booleanisNoGrid()If the whole layout should be non grid based.final booleanIf the layout should go from the default top-to-bottom in the grid instead of the optinal bottom-to-top.final booleanIf visual padding should be automatically used and compensated for by this layout instance.final LCleftToRight(boolean b) Same functionality assetLeftToRight(Boolean)only this method returnsthisfor chaining multiple calls.final LCThe maximum height for the container.final LCThe maximum width for the container.final LCThe minimum height for the container.final LCThe minimum width for the container.final LCnoCache()Same functionality as} only this method returnsinvalid @link
{@link #setNoCache(boolean true)thisfor chaining multiple calls.final LCnoGrid()Same functionality as} only this method returnsinvalid @link
{@link #setNoGrid(boolean true)thisfor chaining multiple calls.final LCSame functionality as} only this method returnsinvalid @link
{@link #setVisualPadding(boolean false)thisfor chaining multiple calls.final LCpack()Short for, and thus same as,.pack("pref", "pref").final LCSets the pack width and height.final LCpackAlign(float alignX, float alignY) Sets the pack width and height alignment.voidfinal LCSame functionality as setLeftToRight(false) only this method returnsthisfor chaining multiple calls.final voidIf 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.final voidIf 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.final voidsetDebugMillis(int millis) If> 0the debug decorations will be repainted everymillis.final voidsetFillX(boolean b) If the layout should always claim the whole bounds of the laid out container even if the preferred size is smaller.final voidsetFillY(boolean b) If the layout should always claim the whole bounds of the laid out container even if the preferred size is smaller.final voidsetFlowX(boolean b) The default flow direction.final voidIf non-null(nullis default) these value will be used as the default gaps between the columns in the grid.final voidIf non-null(nullis default) these value will be used as the default gaps between the rows in the grid.final voidSets the minimum/preferred/maximum size for the container that this layout constraint is set for.final voidsetHideMode(int mode) How a component that is hidden (not visible) should be treated.final voidThe insets for the layed out panel.final voidIf the layout should be forced to be left-to-right or right-to-left.voidsetNoCache(boolean b) If components have sizes or positions linked to the bounds of the parent in some way (as for instance the"%"unit has) the cache must be turned off for the panel.final voidsetNoGrid(boolean b) If the whole layout should be non grid based.final voidsetPackHeight(BoundSize size) Sets the "pack height" for the window that this container is located in.final voidsetPackHeightAlign(float align) If there is a resize of the window due to packing (seesetPackHeight(BoundSize)this value, which is between 0f and 1f, decides where the extra/surpurflous size is placed. 0f means that the window will resize so that the upper part moves up and the lower side stays in the same place. 0.5f will expand/reduce the window equally upwards and downwards. 1f will do the opposite of 0f of course.final voidsetPackWidth(BoundSize size) Sets the "pack width" for the window that this container is located in.final voidsetPackWidthAlign(float align) If there is a resize of the window due to packing (seesetPackHeight(BoundSize)this value, which is between 0f and 1f, decides where the extra/surpurflous size is placed. 0f means that the window will resize so that the left part moves left and the right side stays in the same place. 0.5f will expand/reduce the window equally to the right and lefts. 1f will do the opposite of 0f of course.final voidsetTopToBottom(boolean b) If the layout should go from the default top-to-bottom in the grid instead of the optinal bottom-to-top.final voidsetVisualPadding(boolean b) If visual padding should be automatically used and compensated for by this layout instance.final voidSets the minimum/preferred/maximum size for the container that this layout constraint is set for.final voidsetWrapAfter(int count) Sets after what cell the grid should always auto wrap.final LCSame functionality as} only this method returnsinvalid @link
{@link #setTopToBottom(boolean true)thisfor chaining multiple calls.final LCThe width for the container as a min and/or preferref and/or maximum width.final LCwrap()Sets a wrap after the number of columns/rows that is defined in theAC.final LCwrapAfter(int count) Same functionality assetWrapAfter(int)only this method returnsthisfor chaining multiple calls.void
-
Constructor Details
-
LC
public LC()Empty constructor.
-
-
Method Details
-
isNoCache
public boolean isNoCache()If components have sizes or positions linked to the bounds of the parent in some way (as for instance the"%"unit has) the cache must be turned off for the panel. If components does not get the correct or expected size or position try to set this property totrue.- Returns:
truemeans no cache and slightly slower layout.
-
setNoCache
public void setNoCache(boolean b) If components have sizes or positions linked to the bounds of the parent in some way (as for instance the"%"unit has) the cache must be turned off for the panel. If components does not get the correct or expected size or position try to set this property totrue.- Parameters:
b-truemeans no cache and slightly slower layout.
-
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.nullis default and that means top/left alignment. The relative distances between the components will not be affected by this property.- Returns:
- The current alignment.
-
setAlignX
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.nullis default and that means top/left alignment. The relative distances between the components will not be affected by this property.- Parameters:
uv- The new alignment. UseConstraintParser.parseAlignKeywords(String, boolean)to create theUnitValue. May benull.
-
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.nullis default and that means top/left alignment. The relative distances between the components will not be affected by this property.- Returns:
- The current alignment.
-
setAlignY
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.nullis default and that means top/left alignment. The relative distances between the components will not be affected by this property.- Parameters:
uv- The new alignment. UseConstraintParser.parseAlignKeywords(String, boolean)to create theUnitValue. May benull.
-
getDebugMillis
public final int getDebugMillis()If> 0the debug decorations will be repainted everymillis. No debug information if<= 0(default).- Returns:
- The current debug repaint interval.
-
setDebugMillis
public final void setDebugMillis(int millis) If> 0the debug decorations will be repainted everymillis. No debug information if<= 0(default).- Parameters:
millis- The new debug repaint interval.
-
isFillX
public final boolean isFillX()If the layout should always claim the whole bounds of the laid out container even if the preferred size is smaller.- Returns:
truemeans fill.falseis default.
-
setFillX
public final void setFillX(boolean b) If the layout should always claim the whole bounds of the laid out container even if the preferred size is smaller.- Parameters:
b-truemeans fill.falseis default.
-
isFillY
public final boolean isFillY()If the layout should always claim the whole bounds of the laid out container even if the preferred size is smaller.- Returns:
truemeans fill.falseis default.
-
setFillY
public final void setFillY(boolean b) If the layout should always claim the whole bounds of the laid out container even if the preferred size is smaller.- Parameters:
b-truemeans fill.falseis default.
-
isFlowX
public final boolean isFlowX()The default flow direction. Normally (which istrue) this is horizontal and that means that the "next" component will be put in the cell to the right (or to the left if left-to-right is false).- Returns:
trueis the default flow horizontally.- See Also:
-
setFlowX
public final void setFlowX(boolean b) The default flow direction. Normally (which istrue) this is horizontal and that means that the "next" component will be put in the cell to the right (or to the left if left-to-right is false).- Parameters:
b-trueis the default flow horizontally.- See Also:
-
getGridGapX
If non-null(nullis default) these value will be used as the default gaps between the columns in the grid.- Returns:
- The default grid gap between columns in the grid.
nullif the platform default is used.
-
setGridGapX
If non-null(nullis default) these value will be used as the default gaps between the columns in the grid.- Parameters:
x- The default grid gap between columns in the grid. Ifnullthe platform default is used.
-
getGridGapY
If non-null(nullis default) these value will be used as the default gaps between the rows in the grid.- Returns:
- The default grid gap between rows in the grid.
nullif the platform default is used.
-
setGridGapY
If non-null(nullis default) these value will be used as the default gaps between the rows in the grid.- Parameters:
y- The default grid gap between rows in the grid. Ifnullthe platform default is used.
-
getHideMode
public final int getHideMode()How a component that is hidden (not visible) should be treated by default.- Returns:
- The mode:
0 == Normal. Bounds will be caclulated as if the component was visible.
1 == If hidden the size will be 0, 0 but the gaps remain.
2 == If hidden the size will be 0, 0 and gaps set to zero.
3 == If hidden the component will be disregarded completely and not take up a cell in the grid..
-
setHideMode
public final void setHideMode(int mode) How a component that is hidden (not visible) should be treated.- Parameters:
mode- The mode:
0 == Normal. Bounds will be caclulated as if the component was visible.
1 == If hidden the size will be 0, 0 but the gaps remain.
2 == If hidden the size will be 0, 0 and gaps set to zero.
3 == If hidden the component will be disregarded completely and not take up a cell in the grid..
-
getInsets
The insets for the layed out panel. The insets will be an empty space around the components in the panel.nullvalues means that the default panel insets for the platform is used. SeePlatformDefaults.setDialogInsets(net.miginfocom.layout.UnitValue, net.miginfocom.layout.UnitValue, net.miginfocom.layout.UnitValue, net.miginfocom.layout.UnitValue).- Returns:
- The insets. Of length 4 (top, left, bottom, right) or
null. The elements (1 to 4) may benull. The array is a copy and can be used freely. - See Also:
-
setInsets
The insets for the layed out panel. The insets will be an empty space around the components in the panel.nullvalues means that the default panel insets for the platform is used. SeePlatformDefaults.setDialogInsets(net.miginfocom.layout.UnitValue, net.miginfocom.layout.UnitValue, net.miginfocom.layout.UnitValue, net.miginfocom.layout.UnitValue).- Parameters:
ins- The new insets. Must be of length 4 (top, left, bottom, right) ornull. The elements (1 to 4) may benullto use the platform default for that side. The array is copied for storage.- See Also:
-
getLeftToRight
If the layout should be forced to be left-to-right or right-to-left. A value ofnullis default and means that this will be picked up from theLocalethat the container being layed out is reporting.- Returns:
Boolean.TRUEif force left-to-right.Boolean.FALSEif force tight-to-left.nullfor the default "let the current Locale decide".
-
setLeftToRight
If the layout should be forced to be left-to-right or right-to-left. A value ofnullis default and means that this will be picked up from theLocalethat the container being layed out is reporting.- Parameters:
b-Boolean.TRUEto force left-to-right.Boolean.FALSEto force tight-to-left.nullfor the default "let the current Locale decide".
-
isNoGrid
public final boolean isNoGrid()If the whole layout should be non grid based. It is the same as setting the "nogrid" property on every row/column in the grid.- Returns:
truemeans not grid based.falseis default.
-
setNoGrid
public final void setNoGrid(boolean b) If the whole layout should be non grid based. It is the same as setting the "nogrid" property on every row/column in the grid.- Parameters:
b-truemeans no grid.falseis default.
-
isTopToBottom
public final boolean isTopToBottom()If the layout should go from the default top-to-bottom in the grid instead of the optinal bottom-to-top.- Returns:
truefor the default top-to-bottom.
-
setTopToBottom
public final void setTopToBottom(boolean b) If the layout should go from the default top-to-bottom in the grid instead of the optinal bottom-to-top.- Parameters:
b-truefor the default top-to-bottom.
-
isVisualPadding
public final boolean isVisualPadding()If visual padding should be automatically used and compensated for by this layout instance.- Returns:
trueif visual padding.
-
setVisualPadding
public final void setVisualPadding(boolean b) If visual padding should be automatically used and compensated for by this layout instance.- Parameters:
b-trueturns on visual padding.
-
getWrapAfter
public final int getWrapAfter()Returns after what cell the grid should always auto wrap.- Returns:
- After what cell the grid should always auto wrap. If
0the number of columns/rows in theACis used.LayoutUtil.INFis used for no auto wrap.
-
setWrapAfter
public final void setWrapAfter(int count) Sets after what cell the grid should always auto wrap.- Parameters:
count- After what cell the grid should always auto wrap. If0the number of columns/rows in theACis used.LayoutUtil.INFis used for no auto wrap.
-
getPackWidth
Returns the "pack width" for the window that this container is located in. When the size of this container changes the size of the window will be corrected to be within this BoundsSize. It can be used to set the minimum and/or maximum size of the window as well as the size window should optimally get. This optimal size is normaly its "preferred" size which is why "preferred" is the normal value to set here.":push" can be appended to the bound size to only push the size bigger and never shrink it if the preferred size gets smaller.
E.g. "pref", "100:pref", "pref:700", "300::700", "pref:push"
- Returns:
- The current value. Never
null. Check if not set with.isUnset(). - Since:
- 3.5
-
setPackWidth
Sets the "pack width" for the window that this container is located in. When the size of this container changes the size of the window will be corrected to be within this BoundsSize. It can be used to set the minimum and/or maximum size of the window as well as the size window should optimally get. This optimal size is normaly its "preferred" size which is why "preferred" is the normal value to set here.":push" can be appended to the bound size to only push the size bigger and never shrink it if the preferred size gets smaller.
E.g. "pref", "100:pref", "pref:700", "300::700", "pref:push"
- Parameters:
size- The new pack size. Ifnullit will be corrected to an "unset" BoundSize.- Since:
- 3.5
-
getPackHeight
Returns the "pack height" for the window that this container is located in. When the size of this container changes the size of the window will be corrected to be within this BoundsSize. It can be used to set the minimum and/or maximum size of the window as well as the size window should optimally get. This optimal size is normaly its "preferred" size which is why "preferred" is the normal value to set here.":push" can be appended to the bound size to only push the size bigger and never shrink it if the preferred size gets smaller.
E.g. "pref", "100:pref", "pref:700", "300::700", "pref:push"
- Returns:
- The current value. Never
null. Check if not set with.isUnset(). - Since:
- 3.5
-
setPackHeight
Sets the "pack height" for the window that this container is located in. When the size of this container changes the size of the window will be corrected to be within this BoundsSize. It can be used to set the minimum and/or maximum size of the window as well as the size window should optimally get. This optimal size is normaly its "preferred" size which is why "preferred" is the normal value to set here.":push" can be appended to the bound size to only push the size bigger and never shrink it if the preferred size gets smaller.
E.g. "pref", "100:pref", "pref:700", "300::700", "pref:push"
- Parameters:
size- The new pack size. Ifnullit will be corrected to an "unset" BoundSize.- Since:
- 3.5
-
getPackHeightAlign
public final float getPackHeightAlign()If there is a resize of the window due to packing (seesetPackHeight(BoundSize)this value, which is between 0f and 1f, decides where the extra/surpurflous size is placed. 0f means that the window will resize so that the upper part moves up and the lower side stays in the same place. 0.5f will expand/reduce the window equally upwards and downwards. 1f will do the opposite of 0f of course.- Returns:
- The pack alignment. Always between 0f and 1f, inclusive.
- Since:
- 3.5
-
setPackHeightAlign
public final void setPackHeightAlign(float align) If there is a resize of the window due to packing (seesetPackHeight(BoundSize)this value, which is between 0f and 1f, decides where the extra/surpurflous size is placed. 0f means that the window will resize so that the upper part moves up and the lower side stays in the same place. 0.5f will expand/reduce the window equally upwards and downwards. 1f will do the opposite of 0f of course.- Parameters:
align- The pack alignment. Always between 0f and 1f, inclusive. Values outside this will be truncated.- Since:
- 3.5
-
getPackWidthAlign
public final float getPackWidthAlign()If there is a resize of the window due to packing (seesetPackHeight(BoundSize)this value, which is between 0f and 1f, decides where the extra/surpurflous size is placed. 0f means that the window will resize so that the left part moves left and the right side stays in the same place. 0.5f will expand/reduce the window equally to the right and lefts. 1f will do the opposite of 0f of course.- Returns:
- The pack alignment. Always between 0f and 1f, inclusive.
- Since:
- 3.5
-
setPackWidthAlign
public final void setPackWidthAlign(float align) If there is a resize of the window due to packing (seesetPackHeight(BoundSize)this value, which is between 0f and 1f, decides where the extra/surpurflous size is placed. 0f means that the window will resize so that the left part moves left and the right side stays in the same place. 0.5f will expand/reduce the window equally to the right and lefts. 1f will do the opposite of 0f of course.- Parameters:
align- The pack alignment. Always between 0f and 1f, inclusive. Values outside this will be truncated.- Since:
- 3.5
-
getWidth
Returns the minimum/preferred/maximum size for the container that this layout constraint is set for. Any of these sizes that is notnullwill be returned directly instead of determining the correspondig size through asking the components in this container.- Returns:
- The width for the container that this layout constraint is set for. Not
nullbut all sizes can benull. - Since:
- 3.5
-
setWidth
Sets the minimum/preferred/maximum size for the container that this layout constraint is set for. Any of these sizes that is notnullwill be returned directly instead of determining the correspondig size through asking the components in this container.- Parameters:
size- The width for the container that this layout constraint is set for.nullis translated to a bound size containing only null sizes.- Since:
- 3.5
-
getHeight
Returns the minimum/preferred/maximum size for the container that this layout constraint is set for. Any of these sizes that is notnullwill be returned directly instead of determining the correspondig size through asking the components in this container.- Returns:
- The height for the container that this layout constraint is set for. Not
nullbut all sizes can benull. - Since:
- 3.5
-
setHeight
Sets the minimum/preferred/maximum size for the container that this layout constraint is set for. Any of these sizes that is notnullwill be returned directly instead of determining the correspondig size through asking the components in this container.- Parameters:
size- The height for the container that this layout constraint is set for.nullis translated to a bound size containing only null sizes.- Since:
- 3.5
-
pack
Short for, and thus same as,.pack("pref", "pref").Same functionality as
setPackHeight(BoundSize)andsetPackWidth(net.miginfocom.layout.BoundSize)only this method returnsthisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- Since:
- 3.5
-
pack
Sets the pack width and height.Same functionality as
setPackHeight(BoundSize)andsetPackWidth(net.miginfocom.layout.BoundSize)only this method returnsthisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
width- The pack width. May benull.height- The pack height. May benull.- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- Since:
- 3.5
-
packAlign
Sets the pack width and height alignment.Same functionality as
setPackHeightAlign(float)andsetPackWidthAlign(float)only this method returnsthisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
alignX- The pack width alignment. 0.5f is default.alignY- The pack height alignment. 0.5f is default.- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- Since:
- 3.5
-
wrap
Sets a wrap after the number of columns/rows that is defined in theAC.Same functionality as
} only this method returnsinvalid @link
{@link #setWrapAfter(int 0)thisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
wrapAfter
Same functionality assetWrapAfter(int)only this method returnsthisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
count- After what cell the grid should always auto wrap. If0the number of columns/rows in the- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
noCache
Same functionality as} only this method returnsinvalid @link
{@link #setNoCache(boolean true)thisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
flowY
Same functionality as} only this method returnsinvalid @link
{@link #setFlowX(boolean false)thisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
flowX
Same functionality as} only this method returnsinvalid @link
{@link #setFlowX(boolean true)thisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
fill
Same functionality as} andinvalid @link
{@link #setFillX(boolean true)} conmbined.T his method returnsinvalid @link
{@link #setFillY(boolean true)thisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
fillX
Same functionality as} only this method returnsinvalid @link
{@link #setFillX(boolean true)thisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
fillY
Same functionality as} only this method returnsinvalid @link
{@link #setFillY(boolean true)thisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
leftToRight
Same functionality assetLeftToRight(Boolean)only this method returnsthisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
b-truefor forcing left-to-right.falsefor forcing right-to-left.- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
rightToLeft
Same functionality as setLeftToRight(false) only this method returnsthisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- Since:
- 3.7.2
-
bottomToTop
Same functionality as} only this method returnsinvalid @link
{@link #setTopToBottom(boolean false)thisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
topToBottom
Same functionality as} only this method returnsinvalid @link
{@link #setTopToBottom(boolean true)thisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- Since:
- 3.7.2
-
noGrid
Same functionality as} only this method returnsinvalid @link
{@link #setNoGrid(boolean true)thisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
noVisualPadding
Same functionality as} only this method returnsinvalid @link
{@link #setVisualPadding(boolean false)thisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
insetsAll
Sets the same inset (expressed as aUnitValue, e.g. "10px" or "20mm") all around.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
allSides- The unit value to set for all sides. May benullwhich means that the default panel insets for the platform is used.- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- See Also:
-
insets
Same functionality assetInsets(ConstraintParser.parseInsets(s, true)). This method returnsthisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
s- The string to parse. E.g. "10 10 10 10" or "20". If less than 4 groups the last will be used for the missing.- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- See Also:
-
insets
Sets the different insets (expressed as aUnitValues, e.g. "10px" or "20mm") for the corresponding sides.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
top- The top inset. E.g. "10px" or "10mm" or "related". May benullin which case the default inset for this side for the platform will be used.left- The left inset. E.g. "10px" or "10mm" or "related". May benullin which case the default inset for this side for the platform will be used.bottom- The bottom inset. E.g. "10px" or "10mm" or "related". May benullin which case the default inset for this side for the platform will be used.right- The right inset. E.g. "10px" or "10mm" or "related". May benullin which case the default inset for this side for the platform will be used.- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- See Also:
-
alignX
Same functionality assetAlignX(ConstraintParser.parseUnitValueOrAlign(unitValue, true))only this method returnsthisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
align- The align keyword or for instance "100px". E.g "left", "right", "leading" or "trailing".- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- See Also:
-
alignY
Same functionality assetAlignY(ConstraintParser.parseUnitValueOrAlign(align, false))only this method returnsthisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
align- The align keyword or for instance "100px". E.g "top" or "bottom".- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- See Also:
-
align
Sets both the alignX and alignY as the same time.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
ax- The align keyword or for instance "100px". E.g "left", "right", "leading" or "trailing".ay- The align keyword or for instance "100px". E.g "top" or "bottom".- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- See Also:
-
gridGapX
Same functionality assetGridGapX(ConstraintParser.parseBoundSize(boundsSize, true, true))only this method returnsthisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
boundsSize- TheBoundSizeof the gap. This is a minimum and/or preferred and/or maximum size. E.g."50:100:200"or"100px".- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- See Also:
-
gridGapY
Same functionality assetGridGapY(ConstraintParser.parseBoundSize(boundsSize, true, false))only this method returnsthisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
boundsSize- TheBoundSizeof the gap. This is a minimum and/or preferred and/or maximum size. E.g."50:100:200"or"100px".- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- See Also:
-
gridGap
Sets both grid gaps at the same time. seegridGapX(String)andgridGapY(String).For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
gapx- TheBoundSizeof the gap. This is a minimum and/or preferred and/or maximum size. E.g."50:100:200"or"100px".gapy- TheBoundSizeof the gap. This is a minimum and/or preferred and/or maximum size. E.g."50:100:200"or"100px".- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- See Also:
-
debug
Same functionality assetDebugMillis(int repaintMillis)only this method returnsthisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
repaintMillis- The new debug repaint interval.- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- See Also:
-
hideMode
Same functionality assetHideMode(int mode)only this method returnsthisfor chaining multiple calls.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
- Parameters:
mode- The mode:
0 == Normal. Bounds will be caclulated as if the component was visible.
1 == If hidden the size will be 0, 0 but the gaps remain.
2 == If hidden the size will be 0, 0 and gaps set to zero.
3 == If hidden the component will be disregarded completely and not take up a cell in the grid..- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().- See Also:
-
minWidth
The minimum width for the container. The value will override any value that is set on the container itself.For a more thorough explanation of what this constraint does see the white paper or Cheat Sheet at www.migcontainers.com.
- Parameters:
width- The width expressed as aUnitValue. E.g. "100px" or "200mm".- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
width
The width for the container as a min and/or preferref and/or maximum width. The value will override any value that is set on the container itself.For a more thorough explanation of what this constraint does see the white paper or Cheat Sheet at www.migcontainers.com.
- Parameters:
width- The width expressed as aBoundwidth. E.g. "50:100px:200mm" or "100px".- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
maxWidth
The maximum width for the container. The value will override any value that is set on the container itself.For a more thorough explanation of what this constraint does see the white paper or Cheat Sheet at www.migcontainers.com.
- Parameters:
width- The width expressed as aUnitValue. E.g. "100px" or "200mm".- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
minHeight
The minimum height for the container. The value will override any value that is set on the container itself.For a more thorough explanation of what this constraint does see the white paper or Cheat Sheet at www.migcontainers.com.
- Parameters:
height- The height expressed as aUnitValue. E.g. "100px" or "200mm".- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
height
The height for the container as a min and/or preferref and/or maximum height. The value will override any value that is set on the container itself.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcontainers.com.
- Parameters:
height- The height expressed as aBoundheight. E.g. "50:100px:200mm" or "100px".- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
maxHeight
The maximum height for the container. The value will override any value that is set on the container itself.For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcontainers.com.
- Parameters:
height- The height expressed as aUnitValue. E.g. "100px" or "200mm".- Returns:
thisso it is possible to chain calls. E.g.new LayoutConstraint().noGrid().gap().fill().
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-