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


Java LFCustoms.shiftColor方法代码示例

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


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

示例1: getHTMLColor

import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
private static String getHTMLColor(int r, int g, int b) {
    Color c = LFCustoms.shiftColor(new Color(r, g, b));
    return "<font color=#" //NOI18N
            + LFCustoms.getHexString(c.getRed())
            + LFCustoms.getHexString(c.getGreen())
            + LFCustoms.getHexString(c.getBlue())
            + ">"; //NOI18N
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:SpringXMLConfigCompletionItem.java

示例2: getHTMLColor

import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
public static String getHTMLColor(int r, int g, int b) {
    Color c = LFCustoms.shiftColor(new Color(r, g, b));
    return "<font color=#" //NOI18N
            + LFCustoms.getHexString(c.getRed())
            + LFCustoms.getHexString(c.getGreen())
            + LFCustoms.getHexString(c.getBlue())
            + ">"; //NOI18N
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:Utilities.java

示例3: getHtmlColor

import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
private static String getHtmlColor(int r, int g, int b) {
    Color c = LFCustoms.shiftColor(new Color(r, g, b));
    return "<font color=#" //NOI18N
            + LFCustoms.getHexString(c.getRed())
            + LFCustoms.getHexString(c.getGreen())
            + LFCustoms.getHexString(c.getBlue())
            + ">"; //NOI18N
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:SQLCompletionItem.java

示例4: ElementResultItem

import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
/**
 * Create a start element result item.
 */
public ElementResultItem(int position, GrammarResult res){
    super(position, res.getNodeName());
    this.res = res;
    foreground = LFCustoms.shiftColor(COLOR);
    startElement = true;
    empty = res.isEmptyElement();
    icon = res.getIcon(BeanInfo.ICON_COLOR_16x16);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:ElementResultItem.java

示例5: getDefaultColorError

import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
static Color getDefaultColorError() {
    Color err = UIManager.getColor("nb.output.err.foreground");     //NOI18N
    if (err == null) {
        err = LFCustoms.shiftColor(Color.red);
    }
    return err;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:OutputOptions.java

示例6: getDefaultColorLink

import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
static Color getDefaultColorLink() {
    Color hyperlink = UIManager.getColor(
            "nb.output.link.foreground");                           //NOI18N
    if (hyperlink == null) {
        hyperlink = LFCustoms.shiftColor(Color.blue);
    }
    return hyperlink;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:OutputOptions.java

示例7: getPaintColor

import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
Color getPaintColor() { 
    return LFCustoms.shiftColor(COLOR);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:CompletionResultItem.java

示例8: getPaintColor

import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
@Override
Color getPaintColor() { return LFCustoms.shiftColor(COLOR); }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:3,代码来源:ValueResultItem.java

示例9: EntityRefResultItem

import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
public EntityRefResultItem(int position, GrammarResult res){
    super(position, res.getNodeName());
    selectionForeground = foreground = LFCustoms.shiftColor(Color.red);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:EntityRefResultItem.java

示例10: getPaintColor

import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
/**
     * @deprecated we use startElement flag
     */
//    static class EndTag extends ElementResultItem {
//    }
    
    Color getPaintColor() { return LFCustoms.shiftColor(COLOR); }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:ElementResultItem.java

示例11: hexColorCode

import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
public static String hexColorCode(Color c) {
    Color tweakedToLookAndFeel = LFCustoms.shiftColor(c);
    return Integer.toHexString(tweakedToLookAndFeel.getRGB()).substring(2);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:HtmlCompletionItem.java

示例12: hexColorCode

import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
private static String hexColorCode(Color c) {
    Color tweakedToLookAndFeel = LFCustoms.shiftColor(c);
    return Integer.toHexString(tweakedToLookAndFeel.getRGB()).substring(2);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:HtmlDeclarationFinder.java

示例13: getPaintColor

import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
Color getPaintColor() { return LFCustoms.shiftColor(COLOR); } 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:2,代码来源:XMLResultItem.java


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