本文整理汇总了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
}
示例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
}
示例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
}
示例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);
}
示例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;
}
示例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;
}
示例7: getPaintColor
import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
Color getPaintColor() {
return LFCustoms.shiftColor(COLOR);
}
示例8: getPaintColor
import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
@Override
Color getPaintColor() { return LFCustoms.shiftColor(COLOR); }
示例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);
}
示例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); }
示例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);
}
示例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);
}
示例13: getPaintColor
import org.netbeans.swing.plaf.LFCustoms; //导入方法依赖的package包/类
Color getPaintColor() { return LFCustoms.shiftColor(COLOR); }