Exemplo n.º 1
0
 def paint(self, p, *args):
     UIGraphicsItem.paint(self, p, *args)
     
     br = self.boundingRect()
     h = br.height()
     br.setY(br.y() + self.yrange[0] * h)
     br.setHeight(h - (1.0-self.yrange[1]) * h)
     p.translate(0, br.y())
     p.scale(1.0, br.height())
     p.setPen(self.pen)
     p.drawPath(self.path)
Exemplo n.º 2
0
    def paint(self, p, *args):
        UIGraphicsItem.paint(self, p, *args)

        br = self.boundingRect()
        h = br.height()
        br.setY(br.y() + self.yrange[0] * h)
        br.setHeight(h - (1.0 - self.yrange[1]) * h)
        p.translate(0, br.y())
        p.scale(1.0, br.height())
        p.setPen(self.pen)
        p.drawPath(self.path)
Exemplo n.º 3
0
 def paint(self, p, *args):
     #prof = debug.Profiler('LinearRegionItem.paint')
     UIGraphicsItem.paint(self, p, *args)
     p.setBrush(self.currentBrush)
     p.drawRect(self.boundingRect())
Exemplo n.º 4
0
 def paint(self, p, *args):
     UIGraphicsItem.paint(self, p, *args)
     br = self.boundingRect()
     p.setPen(self.currentPen)
     p.drawLine(Point(br.right(), 0), Point(br.left(), 0))
Exemplo n.º 5
0
 def paint(self, p, *args):
     #prof = debug.Profiler('LinearRegionItem.paint')
     UIGraphicsItem.paint(self, p, *args)
     p.setBrush(self.currentBrush)
     p.drawRect(self.boundingRect())
Exemplo n.º 6
0
 def paint(self, p, *args):
     UIGraphicsItem.paint(self, p, *args)
     br = self.boundingRect()
     p.setPen(self.currentPen)
     p.drawLine(Point(br.right(), 0), Point(br.left(), 0))