Hello, I am stroking a general path with a basic stroke created as follows:
final float MITER_LIMIT_ANGLE = 90.0f; BasicStroke stroke = new BasicStroke(strokeWidth, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER, MITER_LIMIT_ANGLE); I interpret the documentation at BasicStroke to mean that if an angle is less than my MITER_LIMIT_ANGLE, that a JOIN_BEVEL will be used instead of a JOIN_MITER. However, I have a figure (see attached jpeg) with an angle less than 90 degrees and the miter is still used rather than the bevel. In the bug parade, #4198113 deals with this issue but seems to indicate that there is no bug. In the attached jpeg there are four figures, the two rectangles are bounding boxes, ignore these. Inside the larger bounding box is an area that was constructed by adding a stroked shape to the area of the figure in the inner bounding box. What I would expect is that the join at the upper left of the larger figure would have a beveled (flattened) 'corner' rather than the sharp miter. I am working with JDK 1.3.x on Windows 2000. Thank you, Ted Hill
<<attachment: miter_bevel.jpeg>>
