Esempio n. 1
0
    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()
Esempio n. 2
0
    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()
Esempio n. 3
0
 def draw(self, context):
     self.fill_background(context)
     self.highlight(context)
     gaphas.Element.draw(self, context)
     DiagramItem.draw(self, context)
Esempio n. 4
0
 def draw(self, context):
     gaphas.Line.draw(self, context)
     DiagramItem.draw(self, context)
Esempio n. 5
0
 def draw(self, context):
     gaphas.Line.draw(self, context)
     DiagramItem.draw(self, context)
Esempio n. 6
0
 def draw(self, context):
     self.fill_background(context)
     self.highlight(context)
     gaphas.Element.draw(self, context)
     DiagramItem.draw(self, context)