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

Public Member Functions

def __init__
 
def myMove
 
def link
 
def addInLink
 
- Public Member Functions inherited from gui.CItems.PortItem
def __init__
 
def moveBy
 
def myMove
 
def getObj
 
def popup
 
def connect
 
def link
 
def tooltip
 
def selected
 

Private Attributes

 __inList
 

Additional Inherited Members

- Public Attributes inherited from gui.CItems.PortItem
 port
 
 item
 
 node
 
 context
 

Detailed Description

Definition at line 430 of file CItems.py.

Constructor & Destructor Documentation

def gui.CItems.InPortItem.__init__ (   self,
  node,
  port,
  canvas 
)

Definition at line 431 of file CItems.py.

432  def __init__(self,node,port,canvas):
433  PortItem.__init__(self,node,port,canvas)
434  self.__inList=[]

Member Function Documentation

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

Definition at line 448 of file CItems.py.

449  def addInLink(self,link):
450  self.__inList.append(link)
def gui.CItems.InPortItem.link (   self,
  obj 
)

Definition at line 440 of file CItems.py.

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

441  def link(self,obj):
442  #Here we create the link between self and obj.
443  #self has been declared connecting in connect method
444  print "link:",obj
445  if isinstance(obj,OutPortItem):
446  #Connection possible
447  l=LinkItem(obj,self,self.canvas())
def gui.CItems.InPortItem.myMove (   self,
  dx,
  dy 
)

Definition at line 435 of file CItems.py.

References 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().

436  def myMove(self,dx,dy):
437  PortItem.myMove(self,dx,dy)
438  for link in self.__inList:
439  link.setToPoint( int(self.x()), int(self.y()) )

Member Data Documentation

gui.CItems.InPortItem.__inList
private

Definition at line 433 of file CItems.py.

Referenced by gui.GraphViewer.InPortItem.myMove(), and gui.CItems.InPortItem.myMove().


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