XYLineAnnotation

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
maexchen
Posts: 15
Joined: Tue Nov 21, 2006 10:16 am

XYLineAnnotation

Post by maexchen » Thu Nov 08, 2007 3:24 pm

Hello!

How can I change color and thickness from a LineAnnotation?

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Post by skunk » Thu Nov 08, 2007 5:34 pm

Use the constructor that allows you specify the values

Code: Select all

XYLineAnnotation(double x1, double y1, double x2, double y2, java.awt.Stroke stroke, java.awt.Paint paint) 
The stroke argument determines the line width, dotted/dashed etc
The paint argument determines the color

maexchen
Posts: 15
Joined: Tue Nov 21, 2006 10:16 am

Post by maexchen » Sun Jan 27, 2008 4:57 pm

I`ve another question! How can I get my XYLineAnnotation in the Background from my Signal?

Thanks!!!!

Locked