#6 Draw plain lines with drawTreshold

closed
5
2008-07-21
2008-07-21
Snipe Foo
No

Hi,

as drawtreshold is the recommended function to draw the 0 line, would it be possible to add the possibility to draw a plainline (instead of a dotted line) ?

I patched my installation like that, but you may want to do it smarter ;-)

< function drawTreshold($Value,$R,$G,$B,$ShowLabel=FALSE,$ShowOnRight=FALSE)

> function drawTreshold($Value,$R,$G,$B,$ShowLabel=FALSE,$ShowOnRight=FALSE,$PlainLine=FALSE)

------
< $this->drawDottedLine($this->GArea_X1,$Y,$this->GArea_X2,$Y,4,$R,$G,$B);

> if ( $PlainLine )
> $this->drawLine($this->GArea_X1,$Y,$this->GArea_X2,$Y,$R,$G,$B);
> else
> $this->drawDottedLine($this->GArea_X1,$Y,$this->GArea_X2,$Y,4,$R,$G,$B);

Best regards

Snipe Foo

Discussion

  • Snipe Foo

    Snipe Foo - 2008-07-21
    • summary: Hability to draw a plainline with drawTreshold --> Possibility to draw a plainline with drawTreshold
     
  • Snipe Foo

    Snipe Foo - 2008-07-21
    • summary: Possibility to draw a plainline with drawTreshold --> Draw plain lines with drawTreshold
     
  • Jean-Damien POGOLOTTI

    • status: open --> closed
     
  • Jean-Damien POGOLOTTI

    Logged In: YES
    user_id=2084985
    Originator: NO

    I've added an extra "TickWidth" parameter allowing to set the width of the dots. If 0, this will draw a line, if more this will use the drawDottedLine DotSize parameter!

    ..will be available in 1.26d

    Thanks (again) for having reporting this!
    JD.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks