Function Namespace vonline.Connection
Extends
vonline.Base.
Defined in: connection.js.
Constructor Attributes | Constructor Name and Description |
---|---|
vonline.Connection(data)
|
Method Attributes | Method Name and Description |
---|---|
<static> |
vonline.Connection.computePath(x1, y1, x2, y2)
Static method to compute/generate a path between the two points (x1, y1) and (x2, y2)
|
createObject(canvas)
Creates the object on the given canvas
|
|
getPath()
|
|
setPosition(x, y)
|
|
setRotation(deg)
|
|
setScale(x, y, origX, origY)
|
|
setTranslation(x, y)
|
|
- Methods borrowed from class vonline.Base:
- adjustText, changeText, clickEventHandler, dragEventHandler, fitsIn, getId, isConnectedTo, isResizeable, setBorder, setCanvas, setClickEventMode, setColor, setSelection, toJSON, updateAnnotationHandle, updateConnectionHandles, updateInlineTextHandle, updateRotationHandles, updateSelection
Method Detail
<static>
vonline.Connection.computePath(x1, y1, x2, y2)
Static method to compute/generate a path between the two points (x1, y1) and (x2, y2)
- Parameters:
- {float} x1
- {float} y1
- {float} x2
- {float} y2
createObject(canvas)
Creates the object on the given canvas
- Parameters:
- {vonline.Canvas} canvas
createObjectId()
createText()
getPath()
setAnnotationMode()
setConnectionMode()
setDragEventMode()
setPosition(x, y)
- Parameters:
- x
- y
setRotation(deg)
- Parameters:
- deg
setRotationMode()
setScale(x, y, origX, origY)
- Parameters:
- x
- y
- origX
- origY
setTextMode()
setTranslation(x, y)
- Parameters:
- x
- y
updatePath()