|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.viewUtility.StretchLayoutConstraints
Constraints for the StretchLayout. Each of the constrained edges of the component (top, left, bottom, right) are defined as a linear equation "S + M*d", where S=scalar, M=multiplier, and d=dimension. This means that the top-left and bottom-right corners of the component are defined to be: (left + width*leftMult, top + height*topMult) (right + width*rightMult, bottom + height*bottomMult) Where (width,height) are the dimensions of the container. Although simple, this layout manager is very powerful.
Field Summary | |
int |
bottom
|
double |
bottomMult
|
int |
left
|
double |
leftMult
|
int |
right
|
double |
rightMult
|
int |
top
|
double |
topMult
These values should be in the range 0..1 |
Constructor Summary | |
StretchLayoutConstraints()
|
Method Summary | |
StretchLayoutConstraints |
duplicate()
A publicized cloning method. |
void |
setMultipliers(double top,
double left,
double bottom,
double right)
Set all multipliers |
void |
setScalars(int top,
int left,
int bottom,
int right)
Set all scalar values |
java.lang.String |
toString()
Stringify this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int top
public int left
public int bottom
public int right
public double topMult
public double leftMult
public double bottomMult
public double rightMult
Constructor Detail |
public StretchLayoutConstraints()
Method Detail |
public StretchLayoutConstraints duplicate()
public void setMultipliers(double top, double left, double bottom, double right)
public void setScalars(int top, int left, int bottom, int right)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |