AlphaGraphNode __construct(
integer
$id, integer
$width, integer
$height, [string
$message = ''], [array
$nodeColour = null], [string
$URL = null]
)
|
|
Constructor
Parameters:
integer |
$id: |
|
integer |
$width: |
|
integer |
$height: |
|
string |
$message: |
|
array |
$nodeColour: |
|
string |
$URL: |
|
API Tags:
Add a new node to the children array of this node
Parameters:
API Tags:
Information Tags:
Throws: | IllegalArguementException |
Since: | 1.0 |
Get the number of child nodes attached to this node
API Tags:
Information Tags:
mixed getChildAt(
integer
$i
)
|
|
Gets the child node at the index provided, or returns false if none is found
Parameters:
API Tags:
Information Tags:
Returns the array of child AlphaGraphNode objects
API Tags:
Information Tags:
integer getChildrenCenter(
)
|
|
Calculates and returns the midpoint X coordinate of the children of this node
API Tags:
Information Tags:
Returns the node height
API Tags:
Information Tags:
Get the node to the left of this one (if any)
API Tags:
Information Tags:
Returns the links array
API Tags:
Information Tags:
Get the node text message
API Tags:
Information Tags:
Get the node modifier
API Tags:
Information Tags:
Get the node colour array
API Tags:
Information Tags:
Get the node offset
API Tags:
Information Tags:
Get the parent node of this node (if any)
API Tags:
Information Tags:
Get the node to the right of this one (if any)
API Tags:
Information Tags:
Get the node URL
API Tags:
Information Tags:
Returns the node width
API Tags:
Information Tags:
Returns the node X-coordinate
API Tags:
Information Tags:
Returns the node Y-coordinate
API Tags:
Information Tags:
Sets the node to the left of this node
Parameters:
API Tags:
Information Tags:
Throws: | IllegalArguementException |
Since: | 1.0 |
void setMessage(
string
$message
)
|
|
Set the node text message
Parameters:
API Tags:
Information Tags:
void setModifier(
integer
$modifier
)
|
|
Set the node modifier
Parameters:
API Tags:
Information Tags:
void setNodeColour(
array
$nodeColour
)
|
|
Set the node colour array
Parameters:
API Tags:
Information Tags:
Throws: | IllegalArguementException |
Since: | 1.0 |
void setOffset(
integer
$offset
)
|
|
Set the node offset
Parameters:
API Tags:
Information Tags:
Set the parent node
Parameters:
API Tags:
Information Tags:
Throws: | IllegalArguementException |
Since: | 1.0 |
Sets the node to the right of this node
Parameters:
API Tags:
Information Tags:
Throws: | IllegalArguementException |
Since: | 1.0 |
Sets up the array of connector endpoints
API Tags:
Information Tags:
void setURL(
string
$URL
)
|
|
Set the node ULR
Parameters:
API Tags:
Information Tags:
Sets the node X-coordinate
Parameters:
API Tags:
Information Tags:
Sets the node Y-coordinate
Parameters:
API Tags:
Information Tags: