|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rosuda.JGR.layout.AnchorConstraint
public class AnchorConstraint
Used by both AnchorLayout (SWT) and AnchorLayoutManager (Swing)
Field Summary | |
---|---|
static int |
ANCHOR_ABS
(Absolute anchor) Meaning: This side is anchored a fixed distance in pixels (given by the value for this side) from it's parent's respective side. |
static int |
ANCHOR_NONE
Meaning: This side is not anchored. |
static int |
ANCHOR_REL
(Relative anchor) Meaning: This side is anchored so that it always occurs a fixed fraction of the distance along it's parent's side. |
int |
bottom
|
int |
bottomType
|
int |
left
|
int |
leftType
|
int |
right
|
int |
rightType
|
int |
top
|
int |
topType
|
Constructor Summary | |
---|---|
AnchorConstraint()
|
|
AnchorConstraint(int top,
int right,
int bottom,
int left,
int topType,
int rightType,
int bottomType,
int leftType)
Creates an AnchorConstraint. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ANCHOR_NONE
public static final int ANCHOR_REL
public static final int ANCHOR_ABS
public int top
public int bottom
public int left
public int right
public int topType
public int bottomType
public int rightType
public int leftType
Constructor Detail |
---|
public AnchorConstraint()
public AnchorConstraint(int top, int right, int bottom, int left, int topType, int rightType, int bottomType, int leftType)
top
- - value (relative or absolute) for top sideright
- - like 'top' but for right sidebottom
- - like 'top' but for bottom sideleft
- - like 'top' but for left sidetopType
- - either ANCHOR_ABS, ANCHOR_REL or ANCHOR_NONE
to indicate whether the 'top' parameter is an absolute value (in pixels) or
a fractional value (in 1/1000 ths) of the height of this component's parent,
denoting where the anchor will be applied (if at all).rightType
- - like 'topType' but for right sidebottomType
- - like 'topType' but for bottom sideleftType
- - like 'topType' but for left side
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |