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

## Class draw2d.ChopboxConnectionAnchor

    Object
       |
       +--draw2d.ConnectionAnchor
             |
             +--draw2d.ChopboxConnectionAnchor

class draw2d.ChopboxConnectionAnchor
extends draw2d.ConnectionAnchor

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

Fields inherited from class draw2d.ConnectionAnchor
`owner, type`

Constructor Summary
`draw2d.ChopboxConnectionAnchor ( owner)` The ChopboxAnchor's location is found by calculating the intersection of a line drawn from the center point of its owner's box (the parent of the connection port) to a reference point on that box.

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` | `getReferencePoint()` Returns the bounds of this Anchor's owner.

Methods inherited from class draw2d.ConnectionAnchor
`getOwner, setOwner`

Constructor Detail

### draw2d.ChopboxConnectionAnchor

    draw2d.ChopboxConnectionAnchor( owner)

The ChopboxAnchor's location is found by calculating the intersection of a line drawn from the center point of its owner's box (the parent of the connection port) to a reference point on that box. A Connection using the ChopBoxAnchor will be oriented such that they point to their port owner's center.

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

### getReferencePoint

    Object getReferencePoint()

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

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