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

Public Member Functions

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

 __outList
 

Additional Inherited Members

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

Detailed Description

Definition at line 451 of file CItems.py.

Constructor & Destructor Documentation

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

Definition at line 452 of file CItems.py.

453  def __init__(self,node,port,canvas):
454  PortItem.__init__(self,node,port,canvas)
455  self.__outList=[]

Member Function Documentation

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

Definition at line 469 of file CItems.py.

470  def addOutLink(self,link):
471  self.__outList.append(link)
def gui.CItems.OutPortItem.link (   self,
  obj 
)

Definition at line 461 of file CItems.py.

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

462  def link(self,obj):
463  #Here we create the link between self and obj.
464  #self has been declared connecting in connect method
465  print "link:",obj
466  if isinstance(obj,InPortItem):
467  #Connection possible
468  l=LinkItem(self,obj,self.canvas())
def gui.CItems.OutPortItem.links (   self)

Definition at line 472 of file CItems.py.

References gui.CItems.OutControlItem.__outList, and gui.CItems.OutPortItem.__outList.

473  def links(self):
474  return self.__outList
def gui.CItems.OutPortItem.myMove (   self,
  dx,
  dy 
)

Definition at line 456 of file CItems.py.

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

457  def myMove(self,dx,dy):
458  PortItem.myMove(self,dx,dy)
459  for link in self.__outList:
460  link.setFromPoint( int(self.x()), int(self.y()) )

Member Data Documentation

gui.CItems.OutPortItem.__outList
private

Definition at line 454 of file CItems.py.

Referenced by gui.CItems.OutPortItem.links(), gui.GraphViewer.OutPortItem.myMove(), and gui.CItems.OutPortItem.myMove().


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