Package NetworkEditor :: Module items :: Class NetworkConnection
[hide private]
[frames] | no frames]

Class NetworkConnection

source code

               object --+        
                        |        
itemBase.NetworkItemsBase --+    
                            |    
        itemBase.NetworkItems --+
                                |
                               NetworkConnection

This class implements a connection between nodes, drawing lines between the centers of 2 nodes. The mode can be set to 'straight' or 'angles' to have a straight line or lines using only right angles. smooth=1 option can be used for splines joinstyle = 'bevel', 'miter' and 'round'

Instance Methods [hide private]
  __init__(self, port1, port2, mode='straight', name=None, blocking=True, autoRun=True, smooth=False, **kw)
  reshapeConnection(self, event)
  moveReshape(self, event)
  moveEndReshape(self, event)
  getLineCoords(self)
  getLineCoordsLeftRightPorts(self)
  getLineCoordsTopBottomPorts(self)
  updatePosition(self)
  highlight(self, event=None)
  unhighlight(self, event=None)
  setColor(self, color)
  getColor(self)
  select(self)
  deselect(self)
  shadowColors(self, colorTk)
  toggleBlocking_cb(self, event=None)
  reparent_cb(self, type)
  buildIcons(self, canvas)
Build CONNECTION icon
  getSourceCode(self, networkName, selectedOnly=0, indent="", ignoreOriginal=False)
  destroyIcon(self)

Inherited from itemBase.NetworkItems: __repr__, afterAddingToNetwork, afterRemovingFromNetwork, beforeAddingToNetwork, beforeRemovingFromNetwork, deleteIcon, deletePort, editNodeMenu, freeze, gettags, hideParamPanel, introspect, postItemMenu, rename, run, schedule_cb, toggleAutoRun_cb, toggleFrozen_cb, unfreeze

Inherited from itemBase.NetworkItems (private): _introspectCB

Inherited from itemBase.NetworkItemsBase: delEditor, getEditor, setEditor

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__


Class Variables [hide private]
  arcNum = 0

Properties [hide private]

Inherited from itemBase.NetworkItemsBase: editor

Inherited from object: __class__


Method Details [hide private]

__init__(self, port1, port2, mode='straight', name=None, blocking=True, autoRun=True, smooth=False, **kw)
(Constructor)

source code 
None
Overrides: itemBase.NetworkItems.__init__

reshapeConnection(self, event)

source code 
None

moveReshape(self, event)

source code 
None

moveEndReshape(self, event)

source code 
None

getLineCoords(self)

source code 
None

getLineCoordsLeftRightPorts(self)

source code 
None

getLineCoordsTopBottomPorts(self)

source code 
None

updatePosition(self)

source code 
None

highlight(self, event=None)

source code 
None
Overrides: itemBase.NetworkItems.highlight

unhighlight(self, event=None)

source code 
None
Overrides: itemBase.NetworkItems.unhighlight

setColor(self, color)

source code 
None

getColor(self)

source code 
None

select(self)

source code 
None
Overrides: itemBase.NetworkItems.select

deselect(self)

source code 
None
Overrides: itemBase.NetworkItems.deselect

shadowColors(self, colorTk)

source code 
None

toggleBlocking_cb(self, event=None)

source code 
None

reparent_cb(self, type)

source code 
None

buildIcons(self, canvas)

source code 
Build CONNECTION icon
Overrides: itemBase.NetworkItems.buildIcons

getSourceCode(self, networkName, selectedOnly=0, indent="", ignoreOriginal=False)

source code 
None

destroyIcon(self)

source code 
None

Class Variable Details [hide private]

arcNum

None
Value:
0