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

Public Member Functions

def __init__
 
def myMove
 
def link
 
def addInLink
 
- 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

 __inList
 

Additional Inherited Members

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

Detailed Description

Definition at line 318 of file GraphViewer.py.

Constructor & Destructor Documentation

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

Definition at line 319 of file GraphViewer.py.

320  def __init__(self,node,canvas):
321  PortItem.__init__(self,node,canvas)
322  self.__inList=[]

Member Function Documentation

def gui.GraphViewer.InPortItem.addInLink (   self,
  link 
)

Definition at line 334 of file GraphViewer.py.

335  def addInLink(self,link):
336  self.__inList.append(link)
def gui.GraphViewer.InPortItem.link (   self,
  obj 
)

Definition at line 328 of file GraphViewer.py.

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

329  def link(self,obj):
330  print "link:",obj
331  if isinstance(obj,OutPortItem):
332  #Connection possible
333  l=LinkItem(obj,self,self.canvas())
def gui.GraphViewer.InPortItem.myMove (   self,
  dx,
  dy 
)

Definition at line 323 of file GraphViewer.py.

References gui.GraphViewer.InPortItem.__inList, gui.CItems.InControlItem.__inList, gui.CItems.InPortItem.__inList, YACS::HMI::linkPoint.x, YACS::HMI::presentationtype_parser.x(), YACS::HMI::linkPoint.y, and YACS::HMI::presentationtype_parser.y().

324  def myMove(self,dx,dy):
325  PortItem.myMove(self,dx,dy)
326  for link in self.__inList:
327  link.setToPoint( int(self.x()), int(self.y()) )

Member Data Documentation

gui.GraphViewer.InPortItem.__inList
private

Definition at line 321 of file GraphViewer.py.

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


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