|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.layout.BLayoutManager
com.jmex.bui.layout.GroupLayout
public abstract class GroupLayout
Group layout managers lay out widgets in horizontal or vertical groups.
| Nested Class Summary | |
|---|---|
static class |
GroupLayout.Constraints
The group layout managers supports two constraints: fixedness and weight. |
| Field Summary | |
|---|---|
protected java.util.Map<BComponent,java.lang.Object> |
_constraints
|
protected int |
_gap
|
protected Justification |
_justification
|
protected Justification |
_offjust
|
protected Policy |
_offpolicy
|
protected Policy |
_policy
|
static int |
DEFAULT_GAP
The default gap used by a group layout. |
static GroupLayout.Constraints |
FIXED
A constraints object that indicates that the component should be fixed and have the default weight of one. |
| Constructor Summary | |
|---|---|
GroupLayout()
|
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(BComponent comp,
java.lang.Object constraints)
Components added to a container will result in a call to this method, informing the layout manager of said constraints. |
protected Dimension |
computeChildDimens(DimenInfo info,
int ii,
BComponent child,
int whint,
int hhint)
A helper function for computeDimens(com.jmex.bui.BContainer, boolean, int, int). |
protected DimenInfo |
computeDimens(BContainer parent,
boolean horiz,
int whint,
int hhint)
Computes dimensions of the children widgets that are useful for the group layout managers. |
int |
getGap()
|
Justification |
getJustification()
|
Justification |
getOffAxisJustification()
|
Policy |
getOffAxisPolicy()
|
Policy |
getPolicy()
|
protected int |
getWeight(BComponent child)
|
protected boolean |
isFixed(BComponent child)
|
static BContainer |
makeHBox(Justification justification)
Makes a container configured with a horizontal group layout manager. |
static BContainer |
makeHBox(Justification justification,
BComponent... comps)
Makes a horizontal box of components that uses the supplied (on-axis) justification. |
static GroupLayout |
makeHoriz(Justification justification)
Convenience method for creating a horizontal group layout manager. |
static GroupLayout |
makeHoriz(Policy policy,
Justification justification,
Policy offpolicy)
Convenience method for creating a horizontal group layout manager. |
static GroupLayout |
makeHStretch()
Convenience method for creating a horizontal group layout manager that stretches in both directions. |
static BContainer |
makeVBox(Justification justification)
Creates a container configured with a vertical group layout manager. |
static BContainer |
makeVBox(Justification justification,
BComponent... comps)
Makes a vertical box of components that uses the supplied (on-axis) justification. |
static GroupLayout |
makeVert(Justification justification)
Convenience method for creating a vertical group layout manager. |
static GroupLayout |
makeVert(Policy policy,
Justification justification,
Policy offpolicy)
Convenience method for creating a vertical group layout manager. |
static GroupLayout |
makeVStretch()
Convenience method for creating a vertical group layout manager that stretches in both directions. |
void |
removeLayoutComponent(BComponent comp)
Components removed to a container for which a layout manager has been configured will result in a call to this method. |
GroupLayout |
setGap(int gap)
|
GroupLayout |
setJustification(Justification justification)
|
GroupLayout |
setOffAxisJustification(Justification justification)
|
GroupLayout |
setOffAxisPolicy(Policy offpolicy)
|
GroupLayout |
setPolicy(Policy policy)
|
| Methods inherited from class com.jmex.bui.layout.BLayoutManager |
|---|
computePreferredSize, layoutContainer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_GAP
public static final GroupLayout.Constraints FIXED
protected Policy _policy
protected Policy _offpolicy
protected int _gap
protected Justification _justification
protected Justification _offjust
protected java.util.Map<BComponent,java.lang.Object> _constraints
| Constructor Detail |
|---|
public GroupLayout()
| Method Detail |
|---|
public GroupLayout setPolicy(Policy policy)
public Policy getPolicy()
public GroupLayout setOffAxisPolicy(Policy offpolicy)
public Policy getOffAxisPolicy()
public GroupLayout setGap(int gap)
public int getGap()
public GroupLayout setJustification(Justification justification)
public Justification getJustification()
public GroupLayout setOffAxisJustification(Justification justification)
public Justification getOffAxisJustification()
public void addLayoutComponent(BComponent comp,
java.lang.Object constraints)
BLayoutManager
addLayoutComponent in class BLayoutManagerpublic void removeLayoutComponent(BComponent comp)
BLayoutManager
removeLayoutComponent in class BLayoutManagerprotected boolean isFixed(BComponent child)
protected int getWeight(BComponent child)
protected DimenInfo computeDimens(BContainer parent,
boolean horiz,
int whint,
int hhint)
parent - BContainerhoriz - booleanwhint - inthhint - int
protected Dimension computeChildDimens(DimenInfo info,
int ii,
BComponent child,
int whint,
int hhint)
computeDimens(com.jmex.bui.BContainer, boolean, int, int).
public static GroupLayout makeHoriz(Policy policy,
Justification justification,
Policy offpolicy)
public static GroupLayout makeVert(Policy policy,
Justification justification,
Policy offpolicy)
public static GroupLayout makeHoriz(Justification justification)
public static GroupLayout makeVert(Justification justification)
public static GroupLayout makeHStretch()
public static GroupLayout makeVStretch()
public static BContainer makeHBox(Justification justification)
public static BContainer makeHBox(Justification justification,
BComponent... comps)
public static BContainer makeVBox(Justification justification)
public static BContainer makeVBox(Justification justification,
BComponent... comps)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||