public static class BoxLayoutContainer.BoxLayoutData extends MarginData implements LayoutData
Constructor and Description |
---|
BoxLayoutContainer.BoxLayoutData()
Creates a box layout data with default values for
margins
(0), minSize (0), maxSize (unlimited) and
flex (unflexed). |
BoxLayoutContainer.BoxLayoutData(Margins margins)
Creates a box layout data with the specified margins.
|
Modifier and Type | Method and Description |
---|---|
double |
getFlex()
Returns the flex value which is a weight used by the layout for sizing
calculations.
|
int |
getMaxSize()
Returns the maximum size to which widgets will be constrained (defaults
to unlimited).
|
int |
getMinSize()
Returns the minimum size to which widgets will be constrained (defaults
to 0)
|
void |
setFlex(double flex)
Sets the weighted flex value.
|
void |
setMaxSize(int maxSize)
Sets the maximum size to which widgets will be constrained.
|
void |
setMinSize(int minSize)
Sets the minimum size to which widgets will be constrained.
|
getMargins, setMargins
public BoxLayoutContainer.BoxLayoutData()
margins
(0), minSize
(0), maxSize
(unlimited) and
flex
(unflexed).public BoxLayoutContainer.BoxLayoutData(Margins margins)
margins
- the margins for the box layout datapublic double getFlex()
public int getMaxSize()
public int getMinSize()
public void setFlex(double flex)
flex
- the flex valuepublic void setMaxSize(int maxSize)
maxSize
- the maximum allowable size when resizing widgetspublic void setMinSize(int minSize)
minSize
- the minimum allowable size when resizing widgetsCopyright © 2015. All rights reserved.