I try to paint a simple line chart (more or less looking like a trapeze) for displaying data. Furthermore, I want to be able to alter the trapez (and therefore the underlying data), but I have no idea how to implement this... My first try was painting the lines with Graphics#drawLine(int, int, int, int) but the result is ... ugly. I already found JFreeChart, but with this, I can only display data, and not alter it. Can someone show me the way to present the data while being able to alter the line chart? Thanks for help!
I gave the code to illustrate: 1 - one way to draw graphics with the data exposed for alteration by event code 2 - how to draw smooth (anti-aliased) lines 3 - a way to allow user input to alter the model information which underlies the graphics (and thus the graphics) 4 - a way to organize the code by function to keep it clear and easy to use.