Join a rectangle annotation with another annotation in JFreeChart?

六月ゝ 毕业季﹏ 提交于 2019-12-02 16:38:35

问题


I have used XYAnnotation and drawn a rectangle in xylinechart. Now how can I join it with another rectangle annonation?


回答1:


One way would be to use an XYLineAnnotation

plot.addAnnotation(new XYBoxAnnotation( 0.5,0.5,1.5,1.5)); plot.addAnnotation(new XYBoxAnnotation( 4.5,3.5,5.5,4.5)); plot.addAnnotation(new XYLineAnnotation( 1.5,1.5,4.5,3.5)); 



来源:https://stackoverflow.com/questions/13175274/join-a-rectangle-annotation-with-another-annotation-in-jfreechart

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!