This may be more than you need but it might help: http://www.gigascale.org/diva/ I forget how I did it now, but it does work. Probably using an AffineTransform. JohnR > -----Original Message----- > From: Discussion list for Java 2D API > [mailto:[EMAIL PROTECTED]]On Behalf Of Vella, John > Sent: Friday, September 14, 2001 4:39 PM > To: [EMAIL PROTECTED] > Subject: [JAVA2D] Anyone written code to draw lines w/ arrowheads at > arbitrary angl es? > > > I know I'm just being lazy, but I was wondering if anyone has written any code to >handle drawing lines > terminated with arrowheads that can handle non-vertical and non-horizontal lines? I >know it just involves > calculating an angle and then rotating an image buffer containing the arrowhead, but >like I said I'm lazy :-) > > Thanks in advance to anyone willing to help me out, > > John (using 1.3.1) > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA2D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
