|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.qt.ext.layout.QVxFormLayout.Anchor
public static class QVxFormLayout.Anchor
The Anchor gives the possible horizontal and vertical positions.
| Field Summary | |
|---|---|
static int |
HORIZONTAL
Constant for horizontal anchors. |
static int |
VERTICAL
Constant for vertical anchors. |
| Constructor Summary | |
|---|---|
QVxFormLayout.Anchor(QVxFormLayout.Anchor pRelatedAnchor)
Constructs an anchor relative to pRelatedAnchor auto sized. |
|
QVxFormLayout.Anchor(QVxFormLayout.Anchor pRelatedAnchor,
int pPosition)
Constructs an anchor relative to pRelatedAnchor with pPosition pixels. |
|
QVxFormLayout.Anchor(QVxFormLayout.Anchor pRelatedAnchor,
QVxFormLayout.Anchor pSecondRelatedAnchor)
Constructs an centered anchor between the related and second related anchor. |
|
QVxFormLayout.Anchor(QVxFormLayout.Anchor pRelatedAnchor,
QVxFormLayout.Anchor pSecondRelatedAnchor,
float pRelativePosition)
Constructs an centered anchor between the related and second related anchor. |
|
| Method Summary | |
|---|---|
int |
getAbsolutePosition()
Returns the absolute position of this Anchor in this FormLayout. |
QVxFormLayout.Anchor |
getBorderAnchor()
Gets the related border anchor to this anchor. |
QVxFormLayout |
getLayout()
Returns the Layout to which this Anchor belongs. |
int |
getOrientation()
Returns whether the orientation of this Anchor is HORIZONTAL or VERTICAL. |
int |
getPosition()
Returns the position of this Anchor. |
QVxFormLayout.Anchor |
getRelatedAnchor()
Returns the related Anchor. |
QVxFormLayout.Anchor |
getRelativeAnchor()
Gets the related unused auto size anchor. |
float |
getRelativePosition()
Returns the position of this Anchor. |
QVxFormLayout.Anchor |
getSecondRelatedAnchor()
Returns the second related Anchor. |
boolean |
isAutoSize()
Returns true, if the position of this anchor is calculated automatically. |
boolean |
isBorderAnchor()
Returns true, if this anchor is the border anchor. |
boolean |
isRelative()
true, if the anchor is relative. |
void |
setAutoSize(boolean pAutoSize)
Sets, if the position of this anchor is calculated automatically. |
void |
setPosition(int pPosition)
Sets the position of this Anchor. |
void |
setRelatedAnchor(QVxFormLayout.Anchor pRelatedAnchor)
Sets the related Anchor. |
void |
setRelativePosition(float pRelativePosition)
Sets the position of this Anchor. |
void |
setSecondRelatedAnchor(QVxFormLayout.Anchor pSecondRelatedAnchor)
Sets the seocnd related Anchor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int HORIZONTAL
public static final int VERTICAL
| Constructor Detail |
|---|
public QVxFormLayout.Anchor(QVxFormLayout.Anchor pRelatedAnchor)
pRelatedAnchor - the related anchor for this anchor.
public QVxFormLayout.Anchor(QVxFormLayout.Anchor pRelatedAnchor,
int pPosition)
pRelatedAnchor - the related anchor for this anchor.pPosition - the position relative to the related anchor.
public QVxFormLayout.Anchor(QVxFormLayout.Anchor pRelatedAnchor,
QVxFormLayout.Anchor pSecondRelatedAnchor,
float pRelativePosition)
pRelatedAnchor - the related anchor for this anchor.pSecondRelatedAnchor - the second related anchor for this anchor.pRelativePosition - the relative position between first and second anchor.
public QVxFormLayout.Anchor(QVxFormLayout.Anchor pRelatedAnchor,
QVxFormLayout.Anchor pSecondRelatedAnchor)
pRelatedAnchor - the related anchor for this anchor.pSecondRelatedAnchor - the second related anchor for this anchor.| Method Detail |
|---|
public QVxFormLayout getLayout()
public int getOrientation()
HORIZONTAL or VERTICAL.
public boolean isBorderAnchor()
public QVxFormLayout.Anchor getRelatedAnchor()
public void setRelatedAnchor(QVxFormLayout.Anchor pRelatedAnchor)
pRelatedAnchor - the relatedAnchor to set.public QVxFormLayout.Anchor getSecondRelatedAnchor()
public void setSecondRelatedAnchor(QVxFormLayout.Anchor pSecondRelatedAnchor)
pSecondRelatedAnchor - the relatedAnchor to set.public float getRelativePosition()
public void setRelativePosition(float pRelativePosition)
pRelativePosition - the relative positionpublic boolean isAutoSize()
public void setAutoSize(boolean pAutoSize)
pAutoSize - the fixed to set.public int getPosition()
public void setPosition(int pPosition)
pPosition - the position to setpublic int getAbsolutePosition()
public QVxFormLayout.Anchor getBorderAnchor()
public boolean isRelative()
public QVxFormLayout.Anchor getRelativeAnchor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||