Class Index | File Index

Classes


Class Glue


Defined in: connections.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Glue(cp1, cp2)
A Glue just glues together 2 ConnectionPoints.
Field Summary
Field Attributes Field Name and Description
 
id1
First shape's id (usually from a {Figure})
 
id2
Second shape's id (usualy from a {Connector})
 
object type used for JSON deserialization
 
First id type (usually 'figure')
 
First id type (usually 'connector')
Method Summary
Method Attributes Method Name and Description
 
equals(anotherGlue)
Compares to another Glue
<static>  
Glue.load(o)
Creates a {Glue} out of JSON parsed object
<static>  
Glue.loadArray(v)
Creates a an {Array} of {Glue} out of JSON parsed array
 
String representation of the Glue
Class Detail
Glue(cp1, cp2)
A Glue just glues together 2 ConnectionPoints. Glued ConnectionPoints usually belongs to a Connector and a Figure.
Parameters:
{Number} cp1
- the id of the first {ConnectionPoint} (usually from a {Figure})
{Number} cp2
- the id of the second {ConnectionPoint} (usualy from a {Connector})
Field Detail
id1
First shape's id (usually from a {Figure})

id2
Second shape's id (usualy from a {Connector})

oType
object type used for JSON deserialization

type1
First id type (usually 'figure')

type2
First id type (usually 'connector')
Method Detail
{Boolean} equals(anotherGlue)
Compares to another Glue
Parameters:
{Glue} anotherGlue
- - the other glue
Returns:
{Boolean} - true if equals, false otherwise

<static> {Glue} Glue.load(o)
Creates a {Glue} out of JSON parsed object
Author: Alex Gheorghiu .
Parameters:
{JSONObject} o
- the JSON parsed object
Returns:
{Glue} a newly constructed Glue

<static> {Array} Glue.loadArray(v)
Creates a an {Array} of {Glue} out of JSON parsed array
Author: Alex Gheorghiu .
Parameters:
{JSONObject} v
- the JSON parsed {Array}
Returns:
{Array} of newly loaded {Glue}s

{String} toString()
String representation of the Glue
Returns:
{String} - the representation

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jun 09 2011 12:47:26 GMT+0300 (EEST)