To avoid cycling in the drawItem method when there is
a class exdending the CandlestickRenderer which sets
dynamically the candleWidth depending on the current
item there is a need for a setCandleWidth method
which doesn't notifies the listeners. The attached
patch implements this by adding new method with a
boolean parameter to indicate whether to notify the
listeners or not. This can be achieved also by
changing the candleWidth member to protected but I
think that this is the preferred way. Hoping that
such a functionality will be added so I will not need
to carry a patched version of the library.
Log in to post a comment.