Java 8 ColorUIResource - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 ColorUIResource class.

This code example shows how to use the following methods:
This code example shows how to use the following methods:
 * 
 * @author Karsten Lentzsch 
 * @version $Revision: 1.5 $ 
 * 
 * @since 2.0.3 
 */ 
public class ExperienceRoyale extends DesertBluer { 
 
    public String getName() {
        return "Experience Royale"; 
    } 
 
    protected static final ColorUIResource ROYALE_BACKGROUND =
        new ColorUIResource(235, 233, 237);
 
    protected static final ColorUIResource ROYALE_BACKGROUND_DARKER =
        new ColorUIResource(167, 166, 170);
 
    protected static final ColorUIResource ROYALE_SELECTION =
        new ColorUIResource(51, 94, 168);
4
CodeRank
This code example shows how to use the following methods:
 * 
 * @author Karsten Lentzsch 
 * @version $Revision: 1.6 $ 
 */ 
public class ExperienceBlue extends DesertBluer { 
 
 
    public String getName() {
        return "Experience Blue"; 
    } 
 
    protected static final ColorUIResource LUNA_BACKGROUND =
        new ColorUIResource(236, 233, 216);
 
    protected static final ColorUIResource LUNA_BACKGROUND_DARKER =
        new ColorUIResource(189, 190, 176);
 
 
    private static final ColorUIResource SECONDARY1 =
        Colors.GRAY_MEDIUM; 
4
CodeRank
This code example shows how to use the following methods:
 * @author Karsten Lentzsch 
 * @version $Revision: 1.6 $ 
 * 
 * @since 2.0.3 
 */ 
public class LightGray extends ExperienceBlue { 
 
    private static final ColorUIResource GRAY_VERY_LIGHT =
        new ColorUIResource(244, 244, 244);
 
    public String getName() {
        return "Light Gray"; 
    } 
 
    protected ColorUIResource getPrimary1() {
        return new ColorUIResource(51, 153, 255); // Selection
    } 
 
    protected ColorUIResource getPrimary2() {
        return Colors.GRAY_MEDIUMLIGHT; 
4
CodeRank
This code example shows how to use the following methods:
 * 
 * @author Karsten Lentzsch 
 * @version $Revision: 1.7 $ 
 */ 
public class Silver extends ExperienceBlue { 
 
    private static final ColorUIResource GRAY_LIGHT_LIGHTER =
        new ColorUIResource(190, 190, 190);
 
    public String getName() {
        return "Silver"; 
    } 
 
    protected ColorUIResource getPrimary1() {
        return Colors.GRAY_MEDIUMDARK; 
    } 
 
    protected ColorUIResource getPrimary2() {
        return Colors.GRAY_MEDIUMLIGHT; 
    } 
4
CodeRank
This code example shows how to use the following methods:
 * window background. 
 * 
 * @author Karsten Lentzsch 
 * @version $Revision: 1.6 $ 
 */ 
public class DesertBlue extends DesertBluer { 
 
	public String getName() { return "Desert Blue"; }
 
 
	private static final ColorUIResource SECONDARY2	= new ColorUIResource(148, 144, 140);
	private static final ColorUIResource SECONDARY3	= new ColorUIResource(211, 210, 204);
 
 
 
	protected ColorUIResource getPrimary1()		    { return Colors.GRAY_DARK;         }
	protected ColorUIResource getPrimary2()		    { return Colors.BLUE_LOW_MEDIUM;   }
	protected ColorUIResource getPrimary3()		    { return Colors.BLUE_LOW_LIGHTEST; }
 
	protected ColorUIResource getSecondary1()	    { return Colors.GRAY_MEDIUM; }
4
CodeRank
This code example shows how to use the following methods:
 * @author Karsten Lentzsch 
 * @version $Revision: 1.5 $ 
 */ 
public class DesertYellow extends DesertBlue { 
 
    public String getName() {
        return "Desert Yellow"; 
    } 
 
    protected ColorUIResource getPrimary2() {
        return Colors.YELLOW_LOW_MEDIUM; 
    } 
 
    protected ColorUIResource getPrimary3() {
        return Colors.YELLOW_LOW_LIGHTEST; 
    } 
 
    public ColorUIResource getTitleTextColor() {
        return Colors.GRAY_DARKER; 
    } 
4
CodeRank
This code example shows how to use the following methods:
 * @version $Revision: 1.6 $ 
 */ 
public class DesertBluer extends SkyBluer { 
 
	private final ColorUIResource primary1	= new ColorUIResource( 10,  36, 106);
	private final ColorUIResource primary2	= new ColorUIResource( 85, 115, 170);
	private final ColorUIResource primary3	= new ColorUIResource(172, 210, 248);
 
	private final ColorUIResource secondary2	= new ColorUIResource(148, 144, 140);
	private final ColorUIResource secondary3	= new ColorUIResource(212, 208, 200);
 
 
	public String getName() { return "Desert Bluer"; }
 
 
	protected ColorUIResource getPrimary1()					  { return primary1;  }
	protected ColorUIResource getPrimary2()					  { return primary2;  }
	protected ColorUIResource getPrimary3()					  { return primary3;  }
	protected ColorUIResource getSecondary1()				  { return Colors.GRAY_MEDIUM; }
	protected ColorUIResource getSecondary2()				  { return secondary2; }
4
CodeRank
This code example shows how to use the following methods:
     * Configures the value as appropriate for a defaults property in the UIDefaults table. 
     */ 
    protected Object configureValue(Object value) { 
        if (value != null) { 
            if (value instanceof Color) { 
                return new ColorUIResource((Color) value);
            } 
            else if (value instanceof Font) { 
                return new FontUIResource((Font) value);
            } 
            else if (value instanceof UIDefaults.ProxyLazyValue) {
                value = ((UIDefaults.ProxyLazyValue) value).createValue(null);
            } 
            else if (value instanceof UIDefaults.ActiveValue) {
                value = ((UIDefaults.ActiveValue) value).createValue(null);
            } 
        } 
        return value; 
    } 
 
4
CodeRank
This code example shows how to use the following methods:
 */ 
public class ExperienceGreen extends ExperienceBlue { 
 
    public String getName() { 
        return "Experience Green"; 
    } 
 
    private static final ColorUIResource FOCUS = 
        new ColorUIResource(245, 165, 16); 
 
    protected ColorUIResource getPrimary1() { 
        return Colors.GREEN_LOW_DARK; 
    } 
 
    protected ColorUIResource getPrimary2() { 
        return Colors.GREEN_LOW_MEDIUM; 
    } 
 
    protected ColorUIResource getPrimary3() { 
        return Colors.GREEN_LOW_LIGHTEST; 
4
CodeRank
See Code Examples for Java 8 ColorUIResource Methods: