public class ControlAnchor extends Object implements AlignmentConstants
Modifier and Type | Field and Description |
---|---|
Control |
anchorTo |
int |
anchorToPoint |
Control |
floating |
boolean |
keepInsideParent |
int |
myAnchorPoint |
Position |
offsetPosition |
BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, LEFT, NORTH, NORTHEAST, NORTHWEST, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, STRETCH, TAG_BACKGROUND_IMAGE, TAG_BORDER, TAG_FIXEDSIZE, TAG_INSETS, TAG_MAXIMUMSIZE, TAG_MINIMUMSIZE, TAG_PREFERREDSIZE, TAG_RECT, TAG_SPAN, TAG_TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST
Constructor and Description |
---|
ControlAnchor() |
Modifier and Type | Method and Description |
---|---|
ControlAnchor |
anchor(int myAnchor,
int parentAnchor,
Control anchorTo) |
ControlAnchor |
setAnchorPosition(Control anchorTo,
Position position) |
ControlAnchor |
setAnchors(int myAnchor,
int parentAnchor) |
void |
setLocation(Control owner,
Control toAnchor,
Rect childSize) |
ControlAnchor |
setOffsets(double hOffset,
double vOffset) |
void |
update() |
public Control floating
public Control anchorTo
public int anchorToPoint
public int myAnchorPoint
public boolean keepInsideParent
public Position offsetPosition
public ControlAnchor setAnchors(int myAnchor, int parentAnchor)
public ControlAnchor anchor(int myAnchor, int parentAnchor, Control anchorTo)
public ControlAnchor setOffsets(double hOffset, double vOffset)
public ControlAnchor setAnchorPosition(Control anchorTo, Position position)
public void update()