void (Graphics2D g, StrokeType type, float trX, float trY) { g.translate(JBUIScale.scale(trX), JBUIScale.scale(trY)); Object aa = RenderingHints.VALUE_ANTIALIAS_ON; paintLine(g, 0, 0, 0, 0, type, 1, aa); // a dot paintLine(g, 0, -2, 0, -LINE_LEN, type, 1, aa); paintLine(g, 2, -2, LINE_LEN, -LINE_LEN, type, 1, aa); paintLine(g, 2, 0, LINE_LEN, 0, type, 1, aa); paintLine(g, 2, 2, LINE_LEN, LINE_LEN, type, 1, aa); paintLine(g, 0, 2, 0, LINE_LEN, type, 1, aa); paintLine(g, -2, 2, -LINE_LEN, LINE_LEN, type, 1, aa); paintLine(g, -2, 0, -LINE_LEN, 0, type, 1, aa); paintLine(g, -2, -2, -LINE_LEN, -LINE_LEN, type, 1, aa); }