Documentation Set for Swarm 2.2
Prev | Reference VIII. Gui Library | Next

# LinkItem

## Name

LinkItem -- A canvas item for displaying a link between two nodes.

## Description

A CompositeCanvasItem for displaying a link between two NodeItems.

## Protocols adopted by LinkItem

CompositeItem CREATABLE

## Methods

### Phase: Creating

- - setDirectedFlag: (BOOL)directedFlag
  For disabling directed link items.

- - setTo: (id <NodeItem>)to
  Designate the node that will be the destination of the link.

- - setFrom: (id <NodeItem>)from
  Designate the node that will be the source of the link.

### Phase: Using

- - (void)update
  Redraw the link (especially due to the motion of nodes).

- - (void)setColor: (const char *)aColor
  Set the color of the link.

Prev | Home | Next
Line | Up | MessageProbeEntry