Class Glue
Defined in: connections.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Glue(cp1, cp2)
A Glue just glues together 2 ConnectionPoints.
|
Field Attributes | Field Name and Description |
---|---|
First shape's id (usually from a {Figure})
|
|
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 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
|
toString()
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.
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.
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