Logo Search packages:      
Sourcecode: hamster-applet version File versions

def hamster::charting::Chart::_draw_bar (   self,
  context,
  x,
  y,
  w,
  h,
  color 
) [private]

draws a nice bar

Definition at line 315 of file charting.py.

00315                                                    :
        """ draws a nice bar"""
        
        context.rectangle(x, y, w, h)
        set_color(context, dark[color])
        context.fill_preserve()    
        context.stroke()

        if w > 2 and h > 2:
            context.rectangle(x + 1, y + 1, w - 2, h - 2)
            set_color(context, light[color])
            context.fill_preserve()    
            context.stroke()

        if w > 3 and h > 3:
            context.rectangle(x + 2, y + 2, w - 4, h - 4)
            set_color(context, medium[color])
            context.fill_preserve()    
            context.stroke()



    
    def _bar_chart(self, context):


Generated by  Doxygen 1.6.0   Back to index