本文整理匯總了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();
}
}
示例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();
}
}
示例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;
}
示例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;
}
示例5: getOkColor
public Color getOkColor() {
return JBColor.GREEN;
}
示例6: DropToOperation
public DropToOperation(RadComponent container, OperationContext context) {
super(container, context, JBColor.GREEN);
}