Version: 8.3.0
gui.GraphViewer.OutPortItem Class Reference
Inheritance diagram for gui.GraphViewer.OutPortItem:
Collaboration diagram for gui.GraphViewer.OutPortItem:

Public Member Functions

def __init__
 
def myMove
 
def link
 
def addOutLink
 
- Public Member Functions inherited from gui.GraphViewer.PortItem
def __init__
 
def moveBy
 
def myMove
 
def getObj
 
def popup
 
def connect
 
def link
 
def tooltip
 

Private Attributes

 __outList
 

Additional Inherited Members

- Public Attributes inherited from gui.GraphViewer.PortItem
 node
 
 context
 

Detailed Description

Definition at line 337 of file GraphViewer.py.

Constructor & Destructor Documentation

def gui.GraphViewer.OutPortItem.__init__ (   self,
  node,
  canvas 
)

Definition at line 338 of file GraphViewer.py.

339  def __init__(self,node,canvas):
340  PortItem.__init__(self,node,canvas)
341  self.__outList=[]

Member Function Documentation

def gui.GraphViewer.OutPortItem.addOutLink (   self,
  link 
)

Definition at line 353 of file GraphViewer.py.

354  def addOutLink(self,link):
355  self.__outList.append(link)
def gui.GraphViewer.OutPortItem.link (   self,
  obj 
)

Definition at line 347 of file GraphViewer.py.

References gui.graph.Graph.canvas, and gui.CItems.LinkItem.canvas.

348  def link(self,obj):
349  print "link:",obj
350  if isinstance(obj,InPortItem):
351  #Connection possible
352  l=LinkItem(self,obj,self.canvas())
def gui.GraphViewer.OutPortItem.myMove (   self,
  dx,
  dy 
)

Definition at line 342 of file GraphViewer.py.

References gui.GraphViewer.OutPortItem.__outList, gui.CItems.OutControlItem.__outList, gui.CItems.OutPortItem.__outList, YACS::HMI::linkPoint.x, YACS::HMI::presentationtype_parser.x(), YACS::HMI::linkPoint.y, and YACS::HMI::presentationtype_parser.y().

343  def myMove(self,dx,dy):
344  PortItem.myMove(self,dx,dy)
345  for link in self.__outList:
346  link.setFromPoint( int(self.x()), int(self.y()) )

Member Data Documentation

gui.GraphViewer.OutPortItem.__outList
private

Definition at line 340 of file GraphViewer.py.

Referenced by gui.GraphViewer.OutPortItem.myMove().


The documentation for this class was generated from the following file: