|
|||||||||
| 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.AbsoluteLayout
public class AbsoluteLayout
Lays out components at absolute coordinate and with (optional) absolute sizes. Note: the components are laid out in a coordinate system defined from the inside of the insets of the container rather than from the very edge of the container.
| Field Summary | |
|---|---|
protected boolean |
_flipped
|
protected HashMap<BComponent,Object> |
_spots
|
| Constructor Summary | |
|---|---|
AbsoluteLayout()
|
|
AbsoluteLayout(boolean flipped)
|
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(BComponent comp,
Object constraints)
Components added to a container will result in a call to this method, informing the layout manager of said constraints. |
Dimension |
computePreferredSize(BContainer target,
int whint,
int hhint)
Computes the preferred size for the supplied container, based on the preferred sizes of its children and the layout policy implemented by this manager. |
void |
layoutContainer(BContainer target)
Effects the layout policy of this manager on the supplied target, adjusting the size and position of its children based on the size and position of the target at the time of this call. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean _flipped
protected HashMap<BComponent,Object> _spots
| Constructor Detail |
|---|
public AbsoluteLayout()
public AbsoluteLayout(boolean flipped)
flipped - If true, will treat the y coordinates as 0 for the top
and height for the bottom.| Method Detail |
|---|
public void addLayoutComponent(BComponent comp,
Object constraints)
BLayoutManager
addLayoutComponent in class BLayoutManagerpublic void removeLayoutComponent(BComponent comp)
BLayoutManager
removeLayoutComponent in class BLayoutManager
public Dimension computePreferredSize(BContainer target,
int whint,
int hhint)
BLayoutManager
computePreferredSize in class BLayoutManagerpublic void layoutContainer(BContainer target)
BLayoutManager
layoutContainer in class BLayoutManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||