Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#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

  • 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);

     
  • Logged In: YES
    user_id=1077229