public static class JXStatusBar.Constraint extends Object
JXStatusBar. It takes
a ResizeBehaviour, Insets and a Width. Width is only applicable for
ResizeBehavior.FIXED. @see JXStatusBar class documentation.| Modifier and Type | Class and Description |
|---|---|
static class |
JXStatusBar.Constraint.ResizeBehavior |
| Constructor and Description |
|---|
Constraint()
Creates a new Constraint with default FIXED behaviour and no insets.
|
Constraint(Insets insets)
Creates a new Constraint with default FIXED behaviour and the given insets
|
Constraint(int fixedWidth)
Creates a new Constraint with default FIXED behaviour and the given fixed
width.
|
Constraint(int fixedWidth,
Insets insets)
Creates a new Constraint with default FIXED behaviour and the given fixed
width, and using the given Insets.
|
Constraint(JXStatusBar.Constraint.ResizeBehavior resizeBehavior)
Creates a new Constraint with the specified resize behaviour and no insets
|
Constraint(JXStatusBar.Constraint.ResizeBehavior resizeBehavior,
Insets insets)
Creates a new Constraint with the specified resize behavior and insets.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFixedWidth()
Get fixed width.
|
Insets |
getInsets()
Returns the insets.
|
JXStatusBar.Constraint.ResizeBehavior |
getResizeBehavior()
Returns the ResizeBehavior.
|
void |
setFixedWidth(int width)
Set the fixed width the component added with this
constraint will occupy on the
JXStatusBar. |
public Constraint()
public Constraint(Insets insets)
insets - may be null. If null, an Insets with 0 values will be used.public Constraint(int fixedWidth)
fixedWidth - must be >= 0public Constraint(int fixedWidth,
Insets insets)
fixedWidth - must be >= 0insets - may be null. If null, an Insets with 0 values will be used.public Constraint(JXStatusBar.Constraint.ResizeBehavior resizeBehavior)
resizeBehavior - - either JXStatusBar.Constraint.ResizeBehavior.FIXED
or JXStatusBar.Constraint.ResizeBehavior.FILL.public Constraint(JXStatusBar.Constraint.ResizeBehavior resizeBehavior, Insets insets)
resizeBehavior - - either JXStatusBar.Constraint.ResizeBehavior.FIXED
or JXStatusBar.Constraints.ResizeBehavior.FILL.insets - may be null. If null, an Insets with 0 values will be used.public void setFixedWidth(int width)
JXStatusBar. Only applies
to ResizeBehavior.FIXED. Will be ignored for ResizeBehavior.FILL.width - - minimum width component will occupy. If 0, the preferred
width of the component will be used.
The width specified must be >= 0public JXStatusBar.Constraint.ResizeBehavior getResizeBehavior()
public Insets getInsets()
public int getFixedWidth()
Copyright © 2017. All Rights Reserved.