|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.ui.swing.ext.layout.JVxFormLayout.Anchor
public static class JVxFormLayout.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 | |
---|---|
JVxFormLayout.Anchor(JVxFormLayout.Anchor pRelatedAnchor)
Constructs an anchor relative to pRelatedAnchor auto sized. |
|
JVxFormLayout.Anchor(JVxFormLayout.Anchor pRelatedAnchor,
int pPosition)
Constructs an anchor relative to pRelatedAnchor with pPosition pixels. |
|
JVxFormLayout.Anchor(JVxFormLayout.Anchor pRelatedAnchor,
JVxFormLayout.Anchor pSecondRelatedAnchor)
Constructs an centered anchor between the related and second related anchor. |
|
JVxFormLayout.Anchor(JVxFormLayout.Anchor pRelatedAnchor,
JVxFormLayout.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. |
JVxFormLayout.Anchor |
getBorderAnchor()
Gets the related border anchor to this anchor. |
JVxFormLayout |
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. |
JVxFormLayout.Anchor |
getRelatedAnchor()
Returns the related Anchor. |
JVxFormLayout.Anchor |
getRelativeAnchor()
Gets the related unused auto size anchor. |
float |
getRelativePosition()
Returns the position of this Anchor. |
JVxFormLayout.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(JVxFormLayout.Anchor pRelatedAnchor)
Sets the related Anchor. |
void |
setRelativePosition(float pRelativePosition)
Sets the position of this Anchor. |
void |
setSecondRelatedAnchor(JVxFormLayout.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 JVxFormLayout.Anchor(JVxFormLayout.Anchor pRelatedAnchor)
pRelatedAnchor
- the related anchor for this anchor.public JVxFormLayout.Anchor(JVxFormLayout.Anchor pRelatedAnchor, int pPosition)
pRelatedAnchor
- the related anchor for this anchor.pPosition
- the position relative to the related anchor.public JVxFormLayout.Anchor(JVxFormLayout.Anchor pRelatedAnchor, JVxFormLayout.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 JVxFormLayout.Anchor(JVxFormLayout.Anchor pRelatedAnchor, JVxFormLayout.Anchor pSecondRelatedAnchor)
pRelatedAnchor
- the related anchor for this anchor.pSecondRelatedAnchor
- the second related anchor for this anchor.Method Detail |
---|
public JVxFormLayout getLayout()
public int getOrientation()
HORIZONTAL
or VERTICAL
.
public boolean isBorderAnchor()
public JVxFormLayout.Anchor getRelatedAnchor()
public void setRelatedAnchor(JVxFormLayout.Anchor pRelatedAnchor)
pRelatedAnchor
- the relatedAnchor to set.public JVxFormLayout.Anchor getSecondRelatedAnchor()
public void setSecondRelatedAnchor(JVxFormLayout.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 JVxFormLayout.Anchor getBorderAnchor()
public boolean isRelative()
public JVxFormLayout.Anchor getRelativeAnchor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |