Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class draw2d.ConnectionAnchor

    Object
       |
       +--draw2d.ConnectionAnchor

Direct Known Subclasses:
  draw2d.ChopboxConnectionAnchor

class draw2d.ConnectionAnchor

Defined in ConnectionAnchor.js
Version: 0.9.14
Author: Andreas Herz

Field Summary
`Object` | `owner`
`Object` | `type`

Constructor Summary
`draw2d.ConnectionAnchor ( owner)` Provides support for a anchor.

Method Summary
`Object` | `getBox()` Returns the bounds of this Anchor's owner.
`Object` | `getLocation( reference)` Returns the location where the Connection should be anchored in absolute coordinates.
`Object` | `getOwner()` Returns the Figure that contains this ConnectionAnchor.
`Object` | `getReferencePoint()` Returns the reference point for this anchor in absolute coordinates.
`void` | `setOwner( owner)` Set the owner of the Anchor.

Field Detail

### owner

    Object owner

### type

    Object type

Constructor Detail

### draw2d.ConnectionAnchor

    draw2d.ConnectionAnchor( owner)

Provides support for a anchor. A anchor is one of the end points of a draw2d.Connection.

Version: 0.9.14
Author: Andreas Herz

Method Detail

### getBox

    Object getBox()

Returns the bounds of this Anchor's owner. Subclasses can override this method to adjust the box. Maybe you return the box of the port parent (the parent figure)

Returns:

The bounds of this Anchor's owner

### getLocation

    Object getLocation( reference)

Returns the location where the Connection should be anchored in absolute coordinates. The anchor may use the given reference Point to calculate this location.

Parameters:

`reference` - The reference Point in absolute coordinates

Returns:

The anchor's location

### getOwner

    Object getOwner()

Returns the Figure that contains this ConnectionAnchor.

Returns:

The Figure that contains this ConnectionAnchor

### getReferencePoint

    Object getReferencePoint()

Returns the reference point for this anchor in absolute coordinates. This might be used by another anchor to determine its own location.

Returns:

The reference Point

### setOwner

    void setOwner( owner)

Set the owner of the Anchor.

Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Feb 7 23:45:47 2008