コード例 #1
0
ファイル: activitynodes.py プロジェクト: adamboduch/gaphor
    def draw(self, context):
        """
        Draw vertical line - symbol of fork and join nodes. Join
        specification is also drawn above the item.
        """
        Item.draw(self, context)
        DiagramItem.draw(self, context)

        cr = context.cairo

        cr.set_line_width(6)
        h1, h2 = self._handles
        cr.move_to(h1.pos.x, h1.pos.y)
        cr.line_to(h2.pos.x, h2.pos.y)

        cr.stroke()
コード例 #2
0
ファイル: activitynodes.py プロジェクト: tonystark97/gaphor
    def draw(self, context):
        """
        Draw vertical line - symbol of fork and join nodes. Join
        specification is also drawn above the item.
        """
        Item.draw(self, context)
        DiagramItem.draw(self, context)

        cr = context.cairo

        cr.set_line_width(6)
        h1, h2 = self._handles
        cr.move_to(h1.pos.x, h1.pos.y)
        cr.line_to(h2.pos.x, h2.pos.y)

        cr.stroke()
コード例 #3
0
 def draw(self, context):
     self.fill_background(context)
     self.highlight(context)
     gaphas.Element.draw(self, context)
     DiagramItem.draw(self, context)
コード例 #4
0
ファイル: diagramline.py プロジェクト: amolenaar/gaphor
 def draw(self, context):
     gaphas.Line.draw(self, context)
     DiagramItem.draw(self, context)
コード例 #5
0
 def draw(self, context):
     gaphas.Line.draw(self, context)
     DiagramItem.draw(self, context)
コード例 #6
0
ファイル: elementitem.py プロジェクト: amolenaar/gaphor
 def draw(self, context):
     self.fill_background(context)
     self.highlight(context)
     gaphas.Element.draw(self, context)
     DiagramItem.draw(self, context)