|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.swt.layout.FormAttachment
Unsafe:
Field Summary | |
int |
alignment
Suppressed: alignment specifies the alignment of the control side that is attached to a control. |
Control |
control
Suppressed: control specifies the control to which the control side is attached. |
int |
denominator
Suppressed: denominator specifies the denominator of the "a" term in the equation, y = ax + b, which defines the attachment. |
int |
numerator
Suppressed: numerator specifies the numerator of the "a" term in the equation, y = ax + b, which defines the attachment. |
int |
offset
Suppressed: offset specifies the offset, in pixels, of the control side from the attachment position. |
Constructor Summary | |
(package private) |
FormAttachment()
|
|
FormAttachment(Control control)
Suppressed: Constructs a new instance of this class given a control. |
|
FormAttachment(Control control,
int offset)
Suppressed: Constructs a new instance of this class given a control and an offset. |
|
FormAttachment(Control control,
int offset,
int alignment)
Suppressed: Constructs a new instance of this class given a control, an offset and an alignment. |
|
FormAttachment(int numerator,
int offset)
Suppressed: Constructs a new instance of this class given a numerator and an offset. |
|
FormAttachment(int numerator,
int denominator,
int offset)
Suppressed: Constructs a new instance of this class given a numerator and denominator and an offset. |
Method Summary | |
(package private) FormAttachment |
divide(int value)
|
(package private) int |
gcd(int m,
int n)
|
(package private) FormAttachment |
minus(FormAttachment attachment)
|
(package private) FormAttachment |
minus(int value)
|
(package private) FormAttachment |
plus(FormAttachment attachment)
|
(package private) FormAttachment |
plus(int value)
|
(package private) int |
solveX(int value)
|
(package private) int |
solveY(int value)
|
String |
toString()
Suppressed: |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int numerator
public int denominator
public int offset
public Control control
public int alignment
Constructor Detail |
FormAttachment()
public FormAttachment(int numerator, int denominator, int offset)
numerator
- the numerator of the positiondenominator
- the denominator of the positionoffset
- the offset of the side from the positionpublic FormAttachment(int numerator, int offset)
numerator
- the percentage of the positionoffset
- the offset of the side from the positionpublic FormAttachment(Control control, int offset, int alignment)
control
- the control the side is attached tooffset
- the offset of the side from the controlalignment
- the alignment of the side to the control it is attached topublic FormAttachment(Control control, int offset)
control
- the control the side is attached tooffset
- the offset of the side from the controlpublic FormAttachment(Control control)
control
- the control the side is attached toMethod Detail |
FormAttachment divide(int value)
int gcd(int m, int n)
FormAttachment minus(FormAttachment attachment)
FormAttachment minus(int value)
FormAttachment plus(FormAttachment attachment)
FormAttachment plus(int value)
int solveX(int value)
int solveY(int value)
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |