Thanks Jim, After all the time I've spent on this it seems I still do not full understand it!
Everything I have read on this seems to confirms my thinking, it just doesn't translate when using line widths > 1. My understanding is (or was) that the arguments to the Line2D methods , as either x,y coordinates or Points set the "endpoints" of the line. If I draw a line (with line width of 1) from coordinates 20,60 to 20,60 it would cover 1 pixel below and to the right of the coordinate which would be the pixel 20,60 (current user space). So as 20,60 & 21,60 are two distinct coordinate points , if I draw a line using these coordinates as the endpoints, I expected to get a 2 pixel line length (and did with line width of 1). Similarly if i set 2 Points to the coordinates above and use .. setLine(Point2D p1, Point2D p2) it would cover 2 pixels. ( and does with line width of 1 but not with a width > 1 >From the Sun APi Class Line2D docs .. " setLine(Point2D p1, Point2D p2) Sets the location of the end points of this Line2D to the specified Point2D coordinates." Without wishing to take the discussion away from the points above, the end cap options raise another issue.. If I had set CAP_SQUARE or ROUND with a line width of 1, where would it decide to add the additional pixel? Normally half the line width and adding it to each end point? I guess this issue happens any time the line width is an odd pixel number. ....Lew [Message sent by forum member 'aussielew' (aussielew)] http://forums.java.net/jive/thread.jspa?messageID=292007 =========================================================================== 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".
