Search code examples
javajfreechart

Java - as boundaries depend on the window sizes


as boundaries which are selected with red points, from the window sizes depend?

For example, their coordinates with window size 640x480 are (59, 67) and (631, 475).

  1. (59, 67) and (696, 545) when 712x579

  2. (59, 96) and (809, 682) when 825x687

  3. (59, 96) and (990, 748) when 1006x753

how to find regularity of dependence of coordinates from the window size?

Boundaries of JFreeChart


Solution

  • In JFreeChart the ChartPanel class has the getScreenDataArea() method to give you this info.