Skip to content
Snippets Groups Projects
Commit adfacadd authored by Tim Molter's avatar Tim Molter
Browse files

Fix for issue #79 - better clipping for xchart in JScrollPane

parent 7db15415
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ public class PlotContentLineChart extends PlotContent { ...@@ -52,7 +52,7 @@ public class PlotContentLineChart extends PlotContent {
StyleManager styleManager = plot.getChartPainter().getStyleManager(); StyleManager styleManager = plot.getChartPainter().getStyleManager();
// this is for preventing the series to be drawn outside the plot area if min and max is overridden to fall inside the data range // this is for preventing the series to be drawn outside the plot area if min and max is overridden to fall inside the data range
g.setClip(bounds); g.setClip(bounds.createIntersection(g.getClipBounds()));
// X-Axis // X-Axis
double xTickSpace = styleManager.getAxisTickSpacePercentage() * bounds.getWidth(); double xTickSpace = styleManager.getAxisTickSpacePercentage() * bounds.getWidth();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment