The direction and type for attachments
define how you want the connection between two components to be interpreted
when one of the components moves or is resized. There are two basic
types of attachments, absolute and relative:
Attachment Types
|
|
And maintains an attachment
value of ...
|
|
|
a fixed number of
pixels between the connection points of the attached components
|
|
|
a percentage of the
parent component's space between the connection points of the attached
components. If the size of the parent component changes, the space
between the components remains proportional.
|
Unless the size of the
parent component changes, absolute attachments and relative attachments
produce the same effect.
While you are working
in define attachment mode, you can move or resize any component from
which you are defining attachments. When you do this, the values of
any affected attachments are modified. This enables you to move components
closer together or farther apart without having to temporarily remove
any existing attachments.
To demonstrate the difference
between absolute and relative attachments, this example shows two
components attached to their common parent.
The attachment direction controls which component
is affected when the attached component is resized or moved. Attachments
can be single directional or bidirectional:
Attachments
|
|
|
|
|
Both components respond
to resizing or moving either component.
|
|
|
The component that the
arrow points to responds to resizing or moving the component that
is anchored by the end node. is the default.
|
Resizing or moving a
component is considered to be propagated by an attachment if resizing
or moving a component, combined with the attachment, results in another
component being resized or moved. An attachment is considered to be
honored if resizing or moving a component is propagated because of
the attachment.
In the following window,
components a, b and c have a common parent component and are all attached
to the right side of their parent with absolute attachments.