Connector class

Connectors join Nodes together. They are instantiated by the Node's connect() methods and modified by the Node's setDist() methods so there is little need for you to create and manage them yourself but they are documented so you can access their properties and understand their use.

Field Summary
Node n
A reference to a Node that this Connector points to.
float d
The suggested distance to the target Node 'n' (this can be entirely arbitrary and does not affect the target or host Node).

Constructor Summary
Connector (Node n, float d)
Creates a Connector targeted at Node 'n' with a distance property of 'd'.

Constructor Detail

Connector

public Connector (Node n, float d)

Creates a Connector targeted at Node 'n' with a distance property of 'd'. Management of Connectors is handled usually through the methods in the Node object, these methods are nothing more than instantiation and addition to the 'links' property, they are there for your convenience.

Parameters:

n - the Node the Connector targets.
d - the distance property of the Connector, the higher the number the less favourable the Node.