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


Java Gray._95属性代码示例

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


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

示例1: paint

public final void paint(final Graphics g){
  super.paint(g);
  final JBColor lightGray = new JBColor(Color.lightGray, Gray._95);
  final JBColor gray = new JBColor(Color.gray, Gray._95);
  if(ANCHOR_TOP==myAnchor){
    g.setColor(lightGray);
    UIUtil.drawLine(g, 0, 0, getWidth() - 1, 0);
    UIUtil.drawLine(g, 0, 0, 0, getHeight() - 1);
    g.setColor(JBColor.GRAY);
    UIUtil.drawLine(g, getWidth() - 1, 0, getWidth() - 1, getHeight() - 1);
  } else if(ANCHOR_LEFT==myAnchor){
    g.setColor(lightGray);
    UIUtil.drawLine(g, 0, 0, 0, getHeight() - 1);
  } else {
    if(ANCHOR_BOTTOM==myAnchor){
      g.setColor(lightGray);
      UIUtil.drawLine(g, 0, 0, 0, getHeight() - 1);
      g.setColor(gray);
      UIUtil.drawLine(g, 0, getHeight() - 1, getWidth() - 1, getHeight() - 1);
      UIUtil.drawLine(g, getWidth() - 1, 0, getWidth() - 1, getHeight() - 1);
    } else{ // RIGHT
      g.setColor(gray);
      UIUtil.drawLine(g, getWidth() - 1, 0, getWidth() - 1, getHeight() - 1);
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:FloatingDecorator.java

示例2: paint

@Override
public final void paint(final Graphics g) {
  super.paint(g);
  final JBColor lightGray = new JBColor(Color.lightGray, Gray._95);
  final JBColor gray = new JBColor(Color.gray, Gray._95);
  if (ANCHOR_TOP == myAnchor) {
    g.setColor(lightGray);
    UIUtil.drawLine(g, 0, 0, getWidth() - 1, 0);
    UIUtil.drawLine(g, 0, 0, 0, getHeight() - 1);
    g.setColor(JBColor.GRAY);
    UIUtil.drawLine(g, getWidth() - 1, 0, getWidth() - 1, getHeight() - 1);
  }
  else if (ANCHOR_LEFT == myAnchor) {
    g.setColor(lightGray);
    UIUtil.drawLine(g, 0, 0, 0, getHeight() - 1);
  }
  else {
    if (ANCHOR_BOTTOM == myAnchor) {
      g.setColor(lightGray);
      UIUtil.drawLine(g, 0, 0, 0, getHeight() - 1);
      g.setColor(gray);
      UIUtil.drawLine(g, 0, getHeight() - 1, getWidth() - 1, getHeight() - 1);
      UIUtil.drawLine(g, getWidth() - 1, 0, getWidth() - 1, getHeight() - 1);
    }
    else { // RIGHT
      g.setColor(gray);
      UIUtil.drawLine(g, getWidth() - 1, 0, getWidth() - 1, getHeight() - 1);
    }
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:30,代码来源:DesktopFloatingDecorator.java

示例3: getGradientLightColor

public static JBColor getGradientLightColor() {
  return new JBColor(Gray._251, Gray._95);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:3,代码来源:ButtonlessScrollBarUI.java


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