protected Graphics _getGraphics(Graphics2D g) { if (!allowEngravement()) return g; Color foreground = getForeground(); if (Color.BLACK.equals(foreground)) { return new EngravedTextGraphics(g); } return g; }
@Override protected Graphics _getGraphics(Graphics2D g) { if (isSelected() && contentManager().getContentCount() > 1) { return new EngravedTextGraphics(g, 1, 1, Gray._0.withAlpha(myUi.myWindow.isActive() ? 120 : 130)); } return super._getGraphics(g); }
@Override protected Graphics _getGraphics(Graphics2D g) { if (isSelected() && contentManager().getContentCount() > 1) { return new EngravedTextGraphics(g, 1, 1, myUi.myWindow.isActive() ? new Color(0, 0, 0, 120) : new Color(0, 0, 0, 130)); } return super._getGraphics(g); }