Path2D contour = getProjectedContour();
Area area = new Area(contour);
// Trick to paint the triangle and its outline
- // TODO: the newly created Area contains in fact two areas
- // it should be better to have one area where its border
- // is the external outline of the contour...
- // (it would reduce eps/ps/pdf/svg file size)
area.add(new Area(stroke.createStrokedShape(contour)));
g2d.setStroke(EMPTYSTROKE);
g2d.setColor(colors[0]);