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


Java JBColor.GREEN属性代码示例

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


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

示例1: createFeedback

@Override
protected void createFeedback() {
  super.createFeedback();

  if (myMainInsertFeedback == null) {
    FeedbackLayer layer = myMainArea.getFeedbackLayer();

    Rectangle bounds = myMainContainer.getBounds(layer);
    myMainXLocation = bounds.x;

    myMainInsertFeedback = new LineInsertFeedback(JBColor.GREEN, true);
    myMainInsertFeedback.size(getMainFeedbackWidth(layer, myMainXLocation), 0);

    layer.add(myMainInsertFeedback);
    layer.repaint();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:VerticalCaptionFlowBaseOperation.java

示例2: createFeedback

@Override
protected void createFeedback() {
  super.createFeedback();

  if (myMainInsertFeedback == null) {
    FeedbackLayer layer = myMainArea.getFeedbackLayer();

    Rectangle bounds = myMainContainer.getBounds(layer);
    myMainYLocation = bounds.y;

    myMainInsertFeedback = new LineInsertFeedback(JBColor.GREEN, false);
    myMainInsertFeedback.size(0, getMainFeedbackHeight(layer, myMainYLocation));

    layer.add(myMainInsertFeedback);
    layer.repaint();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:HorizontalCaptionFlowBaseOperation.java

示例3: getColor

public JBColor getColor(@NotNull final AnswerPlaceholder placeholder) {
  if (!placeholder.getUseLength() && placeholder.isActive() && placeholder.getActiveSubtaskInfo().isNeedInsertText()) {
    return JBColor.LIGHT_GRAY;
  }
  final StudyStatus status = placeholder.getStatus();
  if (status == StudyStatus.Solved) {
    return JBColor.GREEN;
  }
  if (status == StudyStatus.Failed) {
    return JBColor.RED;
  }
  return JBColor.BLUE;
}
 
开发者ID:medvector,项目名称:educational-plugin,代码行数:13,代码来源:StudyTaskManager.java

示例4: getColor

public JBColor getColor(@NotNull final AnswerPlaceholder placeholder) {
  final StudyStatus status = getStatus(placeholder);
  if (status == StudyStatus.Solved) {
    return JBColor.GREEN;
  }
  if (status == StudyStatus.Failed) {
    return JBColor.RED;
  }
  return JBColor.BLUE;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:StudyTaskManager.java

示例5: getOkColor

public Color getOkColor() {
  return JBColor.GREEN;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:AppIconScheme.java

示例6: DropToOperation

public DropToOperation(RadComponent container, OperationContext context) {
  super(container, context, JBColor.GREEN);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:DropToOperation.java


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