Search found 5 matches

by atmatap
Wed Aug 06, 2014 10:41 am
Forum: JFreeChart
Topic: JFreeChart 1.0.19
Replies: 14
Views: 44017

Re: JFreeChart 1.0.19

You're the Best (  ̄▽ ̄)
by atmatap
Thu Mar 27, 2014 5:09 am
Forum: JFreeChart
Topic: can't get width height chart after chart rendered (-margin)
Replies: 3
Views: 3853

[Solved]

i just had found it, jfreechart set default: setMaximumDrawHeight: 768, setMaximumDrawWidth: 1024. (i sound like moritor 17 in) so when i resize frame to large size then my code get wrong width, height. i must set setMaximumDrawHeight = myLikeHeight, setMaximumDrawWidth = myLikeWidth; (if need, you ...
by atmatap
Thu Mar 27, 2014 3:17 am
Forum: JFreeChart
Topic: can't get width height chart after chart rendered (-margin)
Replies: 3
Views: 3853

Re: can't get width height chart after chart rendered (-marg

I just see this function is correct:

Code: Select all

chartWidth = (int) info.getDataArea().getWidth();
chartHeight = (int) info.getDataArea().getHeight();
but it not exact if i resize window :|

i don't know why?
by atmatap
Fri Mar 21, 2014 10:48 am
Forum: JFreeChart
Topic: Retrieve point under mouse click
Replies: 2
Views: 3430

Re: Retrieve point under mouse click

this is my code, ChartEntity ce = null; ce = cp.getEntityForPoint(x, y); if (ce instanceof XYItemEntity) { XYItemEntity e = (XYItemEntity) ce; XYDataset d = e.getDataset(); int s = e.getSeriesIndex(); int i = e.getItem(); Number valueX = d.getX(s, i); Number valueY = d.getY(s, i); }
by atmatap
Fri Mar 21, 2014 10:27 am
Forum: JFreeChart
Topic: can't get width height chart after chart rendered (-margin)
Replies: 3
Views: 3853

can't get width height chart after chart rendered (-margin)

Hi , I want to get width height of chart after chart rendered (not include margin left - top - right -bottom). http://longrainbow.files.wordpress.com/2014/03/waveform.png i used this way but it is't exact: chart.addProgressListener(new ChartProgressListener() { @Override public void chartProgress(Ch...