Ree
Ree

Reputation: 141

How to remove the line in intervalmarker using Jfreechart?

In the following code please tell me how to remove the line in IntervalMarker using Jfreechart?

IntervalMarker target1 = new IntervalMarker(85,111);
GradientPaintTransformer t1 = new StandardGradientPaintTransformer(GradientPaintTransformType.VERTICAL);
target1.setPaint(new GradientPaint(0.0F, 0.0F,new Color(189,227,208), 0.0F, 0.0F, new Color(186,214,231)));
target1.setGradientPaintTransformer(t1);                                              
xyplot.addRangeMarker(target1,Layer.BACKGROUND);

enter image description here

Upvotes: 0

Views: 758

Answers (1)

GrahamA
GrahamA

Reputation: 5923

Use

target1.setOutlineStroke(new BasicStroke(0));

Or

target1.setOutlineStroke(null);

Update to show results

Null OutlineStroke

enter image description here

BasicStroke(0)

enter image description here

Default

enter image description here

Upvotes: 2

Related Questions