本文整理汇总了Java中com.intellij.ui.LightColors.GREEN属性的典型用法代码示例。如果您正苦于以下问题:Java LightColors.GREEN属性的具体用法?Java LightColors.GREEN怎么用?Java LightColors.GREEN使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.ui.LightColors
的用法示例。
在下文中一共展示了LightColors.GREEN属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCaptionColor
private Color getCaptionColor(final int i)
{
if(mySelectionModel.isSelectedIndex(i))
{
return LightColors.BLUE;
}
if(mySelectedContainer != null)
{
if(i >= 0 && i < mySelectedContainer.getGridCellCount(myIsRow))
{
final GridChangeUtil.CellStatus status = GridChangeUtil.canDeleteCell(mySelectedContainer, i, myIsRow);
if(status == GridChangeUtil.CellStatus.Empty || status == GridChangeUtil.CellStatus.Redundant)
{
return Color.PINK;
}
}
}
return LightColors.GREEN;
}
示例2: getColor
private Color getColor(HighlightSeverity severity) {
if (SeverityRegistrar.getSeverityRegistrar(myProject).compare(severity, HighlightSeverity.ERROR) >= 0) {
return LightColors.RED;
}
if (SeverityRegistrar.getSeverityRegistrar(myProject).compare(severity, HighlightSeverity.WARNING) >= 0) {
return LightColors.YELLOW;
}
return LightColors.GREEN;
}
示例3: getCaptionColor
private Color getCaptionColor(final int i) {
if (mySelectionModel.isSelectedIndex(i)) {
return LightColors.BLUE;
}
if (mySelectedContainer != null) {
if (i >= 0 && i < mySelectedContainer.getGridCellCount(myIsRow)) {
final GridChangeUtil.CellStatus status = GridChangeUtil.canDeleteCell(mySelectedContainer, i, myIsRow);
if (status == GridChangeUtil.CellStatus.Empty || status == GridChangeUtil.CellStatus.Redundant) {
return Color.PINK;
}
}
}
return LightColors.GREEN;
}
示例4: getColor
private Color getColor(HighlightSeverity severity) {
if (SeverityUtil.getSeverityRegistrar(myProject).compare(severity, HighlightSeverity.ERROR) >= 0) {
return LightColors.RED;
}
if (SeverityUtil.getSeverityRegistrar(myProject).compare(severity, HighlightSeverity.WARNING) >= 0) {
return LightColors.YELLOW;
}
return LightColors.GREEN;
}
示例5: getColor
@Nonnull
private static Color getColor(@Nonnull Project project, @Nonnull HighlightSeverity severity) {
if (SeverityRegistrar.getSeverityRegistrar(project).compare(severity, HighlightSeverity.ERROR) >= 0) {
return LightColors.RED;
}
if (SeverityRegistrar.getSeverityRegistrar(project).compare(severity, HighlightSeverity.WARNING) >= 0) {
return LightColors.YELLOW;
}
return LightColors.GREEN;
}
示例6: CaptionStaticDecorator
public CaptionStaticDecorator(RadComponent component) {
this(component, LightColors.GREEN);
}
示例7: CaptionStaticDecorator
public CaptionStaticDecorator(RadComponent component) {
this(component, LightColors.GREEN);
}