Join a rectangle annotation with another annotation in JFreeChart?

后端 未结 1 1442
攒了一身酷
攒了一身酷 2021-01-29 02:55

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

相关标签:
1条回答
  • 2021-01-29 03:34

    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));
    

    Connected XYBoxAnnotation

    0 讨论(0)
提交回复
热议问题