Java 类com.intellij.ui.EngravedTextGraphics 实例源码

项目:intellij-ce-playground    文件:BaseLabel.java   
protected Graphics _getGraphics(Graphics2D g) {
  if (!allowEngravement()) return g;
  Color foreground = getForeground();
  if (Color.BLACK.equals(foreground)) {
    return new EngravedTextGraphics(g);
  }

  return g;
}
项目:intellij-ce-playground    文件:ContentTabLabel.java   
@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);
}
项目:tools-idea    文件:BaseLabel.java   
protected Graphics _getGraphics(Graphics2D g) {
  if (!allowEngravement()) return g;
  Color foreground = getForeground();
  if (Color.BLACK.equals(foreground)) {
    return new EngravedTextGraphics(g);
  }

  return g;
}
项目:tools-idea    文件:ContentTabLabel.java   
@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);
}
项目:consulo    文件:BaseLabel.java   
protected Graphics _getGraphics(Graphics2D g) {
  if (!allowEngravement()) return g;
  Color foreground = getForeground();
  if (Color.BLACK.equals(foreground)) {
    return new EngravedTextGraphics(g);
  }

  return g;
}
项目:consulo    文件:ContentTabLabel.java   
@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);
}