Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 更改XYPlot系列点的形状_Java_Jfreechart - Fatal编程技术网

Java 更改XYPlot系列点的形状

Java 更改XYPlot系列点的形状,java,jfreechart,Java,Jfreechart,我想将点的形状设置为圆形。我就是这样做的: Shape shape = new Ellipse2D.Double(-5,-5,5,5); renderer.setSeriesShape(0, shape); 然后我得到以下结果: 圆圈略微移动。我试图更改(-5,-5,5,5),以便根据直线将圆居中,但没有任何效果。什么是使圆圈居中的正确方法 注意,边界包括左上角的x和y坐标,以及宽度和高度。你可能想要这样的东西: Shape shape = new Ellipse2D.Double(-

我想将点的形状设置为圆形。我就是这样做的:

Shape shape  = new Ellipse2D.Double(-5,-5,5,5);
renderer.setSeriesShape(0,  shape);
然后我得到以下结果:

圆圈略微移动。我试图更改
(-5,-5,5,5)
,以便根据直线将圆居中,但没有任何效果。什么是使圆圈居中的正确方法

注意,边界包括左上角的
x
y
坐标,以及
宽度
高度
。你可能想要这样的东西:

Shape shape  = new Ellipse2D.Double(-5, -5, 10, 10);
研究了一个相关的例子,如本附录的附录中所述