#305 CandleSticks render wick color

open
nobody
General (246)
5
2012-11-27
2006-03-19
Anonymous
No

The candlestickrenderer should paint the HL in the
same color as the filling. I use setPaint(Color.BLACK)
to paint the wick with a neutral color. It doesn't
seem difficult to fix(I tried but I got problems
bulding the whole thing so I though it might be easier
for you)

Thanx

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I managed to get the source working. I pasted the change
    below, although it would be better if the check was removed
    from below, since it is not needed anymore.

    ----I did the following change to CandlestickRenderer.java
    line: 674----

    if (yClose.doubleValue() > yOpen.doubleValue()) {
    if (this.upPaint != null) {
    p=this.upPaint;
    }
    }
    else {
    if (this.downPaint != null) {
    p=this.downPaint;
    }
    }
    g2.setPaint(p);

     
  • John deligiannis

    Logged In: YES
    user_id=1077229

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks