Adding Lines...

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Eric

Adding Lines...

Post by Eric » Tue Nov 05, 2002 9:05 pm

It would be really convenient if the addVerticalLine and AddHorizontalLine features provided a way to remove the lines. It almost seems silly that it doesn't... Unless I'm just missing it...?

Dave Gilbert

Re: Adding Lines...

Post by Dave Gilbert » Wed Nov 06, 2002 6:49 pm

Those methods have been deprecated and replaced with addDomainMarker(...) and addRangeMarker(...). You can clear all of the lines using clearDomainMarkers() and clearRangeMarkers(), but there isn't yet a way to remove a single marker from the collection.

Regards,

DG

Locked