void (Graphics2D g, StrokeType type, float trX, float trY) { g.translate(JBUIScale.scale(trX), JBUIScale.scale(trY)); Object aa = RenderingHints.VALUE_ANTIALIAS_ON; paintRect(g, 0, 0, RECT_SIZE, RECT_SIZE, null, type, 1, aa, false); paintRect(g, 0, RECT_SIZE + 3, RECT_SIZE, RECT_SIZE, ARC_SIZE, type, 1, aa, false); paintRect(g, 0, (RECT_SIZE + 3) * 2, RECT_SIZE, RECT_SIZE, null, type, 1, aa, true); paintRect(g, 0, (RECT_SIZE + 3) * 3, RECT_SIZE, RECT_SIZE, ARC_SIZE, type, 1, aa, true); }