Class Index

Classes


Namespace motigon.figure.Connectors

Defines a connector set.

Connectors

Method Summary
Connector
Gets the connector at the given position.
Connector
getConnectorCloseTo(x, y, tolerance)
Gets the connector close to the given position. Uses a tolerance value to indicate how far away from the connection the given position are allowed to be.
Connector[]
boolean
Checks if any connector has been changed.
void
update()
Update the internal state of all connectors.
void
Rebuild figure connectors based on figure connections.
Method Detail
getConnectorAt(x, y)
Gets the connector at the given position.
Parameters:
{double} x
the horizontal position
{double} y
the vertical position
Returns:
{Connector}

getConnectorCloseTo(x, y, tolerance)
Gets the connector close to the given position. Uses a tolerance value to indicate how far away from the connection the given position are allowed to be.
Parameters:
{double} x
the horizontal position
{double} y
the vertical position
{double} tolerance
the detection tolerance
Returns:
{Connector}

getConnectors()
Returns:
{Connector[]}

isDirty()
Checks if any connector has been changed.
Returns:
{boolean}

update()
Update the internal state of all connectors.
Returns:
{void}

updateFigureConnections()
Rebuild figure connectors based on figure connections.
Returns:
{void}