本文整理汇总了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);
}