114115116117118119120121122123124
if (alpha < 255.0D) { c = g.getComposite(); g.setComposite(AlphaComposite.getInstance(3, (float) (alpha / 255.0D))); } Rect rect = text_size(str); height -= 3; width -= 6; if (align == 0) {
144145146147148149150
g.setFont(Transfer.convert(this.container.font)); Rectangle2D r = g.getFontMetrics().getStringBounds(str, g); return new Rect(0, 0, (int) r.getWidth(), (int) r.getHeight()); }