JFreeChart最大缩小 [英] JFreeChart Maximum Zoom Out

查看:63
本文介绍了JFreeChart最大缩小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与JFreeChart一起通过嵌入到应用程序中的XYPlot创建折线图.该图包含在ChartPanel中,并添加到我的GUI的背景面板中.

I am working with JFreeChart to create a line graph via an XYPlot which is embedded into an application. The graph is contained within a ChartPanel and added to the background panel of my GUI.

我的问题是XYPlot的显示是如此放大,以至于我看不到任何线条.只是每边的空白背景!

My issue is that the XYPlot appears so zoomed in that I am unable to see any of the lines; simply the whitespace background each side of them!

是否有一种方法可以在最大缩小"状态下查看组件,从而使图形易于理解?

Is there a way to view the component at its "maximum zoomed out" state so that the graph is understandable?

非常感谢:)

推荐答案

示例显示了如何添加用于操纵缩放状态的控件.

The setZoomInFactor() method works well for this, but you'll have to define maximum to choose the factor. This example shows how to add a control that manipulates the zoom state.

这篇关于JFreeChart最大缩小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆