当前位置: 首页>>代码示例>>Java>>正文


Java Gray._175属性代码示例

本文整理汇总了Java中com.intellij.ui.Gray._175属性的典型用法代码示例。如果您正苦于以下问题:Java Gray._175属性的具体用法?Java Gray._175怎么用?Java Gray._175使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.intellij.ui.Gray的用法示例。


在下文中一共展示了Gray._175属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: paintBorder

@Override
public void paintBorder(final Component c, final Graphics g, final int x, final int y, final int width, final int height) {
  Color topColor;
  Color secondTopColor;
  Color leftRightColor;
  Color bottomColor;

  if (myDisabled) {
    topColor = Gray._200;
    secondTopColor = Gray._250;
    leftRightColor = Gray._205;
    bottomColor = Gray._220;
  }
  else {
    topColor = Gray._150;
    secondTopColor = Gray._230;
    leftRightColor = Gray._175;
    bottomColor = Gray._200;
  }

  int _y = y + MacUIUtil.MAC_COMBO_BORDER_V_OFFSET;
  
  g.setColor(topColor);
  g.drawLine(x + 3, _y + 3, x + width - 1, _y + 3);

  g.setColor(secondTopColor);
  g.drawLine(x + 3, _y + 4, x + width - 1, _y + 4);

  g.setColor(leftRightColor);
  g.drawLine(x + 3, _y + 4, x + 3, _y + height - 4);
  g.drawLine(x + width - 1, _y + 4, x + width - 1, _y + height - 4);

  g.setColor(bottomColor);
  g.drawLine(x + 4, _y + height - 4, x + width - 2, _y + height - 4);

  g.setColor(UIUtil.getPanelBackground());

  g.fillRect(x,  y, width, 3 + (SystemInfo.isMacOSLion ? 1 : 0));
  g.fillRect(x, _y, 3, height);
  g.fillRect(x, _y + height - 3, width, 3);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:41,代码来源:FixedComboBoxEditor.java

示例2: paintBorder

@Override
public void paintBorder(final Component c, final Graphics g, final int x, final int y, final int width, final int height) {
  Color topColor;
  Color secondTopColor;
  Color leftRightColor;
  Color bottomColor;

  if (myDisabled) {
    topColor = Gray._200;
    secondTopColor = Gray._250;
    leftRightColor = Gray._205;
    bottomColor = Gray._220;
  }
  else {
    topColor = Gray._150;
    secondTopColor = Gray._230;
    leftRightColor = Gray._175;
    bottomColor = Gray._200;
  }

  int _y = y + MacUIUtil.MAC_COMBO_BORDER_V_OFFSET;

  g.setColor(topColor);
  g.drawLine(x + 3, _y + 3, x + width - 1, _y + 3);

  g.setColor(secondTopColor);
  g.drawLine(x + 3, _y + 4, x + width - 1, _y + 4);

  g.setColor(leftRightColor);
  g.drawLine(x + 3, _y + 4, x + 3, _y + height - 4);
  g.drawLine(x + width - 1, _y + 4, x + width - 1, _y + height - 4);

  g.setColor(bottomColor);
  g.drawLine(x + 4, _y + height - 4, x + width - 2, _y + height - 4);

  g.setColor(GradleEditorUiConstants.BACKGROUND_COLOR);

  g.fillRect(x,  y, width, 3 + (SystemInfo.isMacOSLion ? 1 : 0));
  g.fillRect(x, _y, 3, height);
  g.fillRect(x, _y + height - 3, width, 3);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:41,代码来源:GradleEditorComboBoxEditor.java


注:本文中的com.intellij.ui.Gray._175属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。