Hi all!
I have a chart that uses a DateAxis. I can configure the DateAxis to only show ticks I want with the DateTickUnit class. Now, I want to create my tick labels with a user-defined format. I can set the formatter on construction time of my DateTickUnit objects. Unfortunately I have to pass an instance of java.text.DateFormat and not java.text.Format, even if the DateTickUnit class itself doesn't require a DateFormat instance. A Format instance would completely do the job.
In my concrete use-case I would like to use a com.ibm.icu.text.DateFormat from the icu4j library, which is thus not possible.
My suggestion is to replace all occurences of java.text.DateFormat with java.text.Format. The API would only change in a backward compatible way.
What do you think? Should I submit a patch or am I overlooking some potential problems here?
regards,
- martin