當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。