1

I was wondering if it was possible to change part of the background of a JFreeChart object using XYPlot dynamically.

I have a XY plot, and I draw lines from left to right. I want that part, from one point to another, to have a background color different from 3 or 4 previous points.

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
Danielson Silva
  • 178
  • 3
  • 13

1 Answers1

2

IntervalMarker "Represents an interval to be highlighted in some way." If you change a marker's values or color, the listening plot will update itself dynamically. Among the examples seen here, @GrahamA's MouseMarkerDemo also demonstrates mouse interaction:

image

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045