184185186187188189190191
float x1, float x2, float y) { Stroke ulStroke = getStroke(thickness); Line2D line = new Line2D.Float(x1, y + shift, x2, y + shift); return ulStroke.createStrokedShape(line); }
390391392393394395396397398399400
} if (strikethrough) { Stroke stStroke = new BasicStroke(cm.strikethroughThickness); float shiftY = y + cm.strikethroughOffset; Line2D line = new Line2D.Float(x1, shiftY, x2, shiftY); Area slArea = new Area(stStroke.createStrokedShape(line)); if(area == null) { area = slArea; } else { area.add(slArea);
133134135136137138139140141142143144145146
drawRectangle(sg2d, x, y, w, h, lw); } return; } } else if (s instanceof Line2D) { Line2D l2d = (Line2D) s; if (drawGeneralLine(sg2d, l2d.getX1(), l2d.getY1(), l2d.getX2(), l2d.getY2())) { return; } } }