/** * Constructor for RGBA colors. * @param rgba the combined RGBA value * @param hasalpha true if the alpha bits are valid, false otherwise * @param alternativeColors the prioritized list of alternative colors. * @see Color#Color(int, boolean) */ public ColorWithAlternatives(int rgba, boolean hasalpha, Color[] alternativeColors) { super(rgba, hasalpha); initAlternativeColors(alternativeColors); }
/** * Constructor for RGB colors. * @param r the red component * @param g the green component * @param b the blue component * @param alternativeColors the prioritized list of alternative colors. * @see Color#Color(int, int, int) */ public ColorWithAlternatives(int r, int g, int b, Color[] alternativeColors) { super(r, g, b); initAlternativeColors(alternativeColors); }
/** * Constructor for RGB colors. * @param rgb the combined RGB components * @param alternativeColors the prioritized list of alternative colors. * @see Color#Color(int) */ public ColorWithAlternatives(int rgb, Color[] alternativeColors) { super(rgb); initAlternativeColors(alternativeColors); }
/** * Constructor for RGBA colors. * @param r the red component * @param g the green component * @param b the blue component * @param a the alpha component * @param alternativeColors the prioritized list of alternative colors. * @see Color#Color(int, int, int, int) */ public ColorWithAlternatives(int r, int g, int b, int a, Color[] alternativeColors) { super(r, g, b, a); initAlternativeColors(alternativeColors); }
/** * Constructor for RGB colors. * @param r the red component * @param g the green component * @param b the blue component * @param alternativeColors the prioritized list of alternative colors. * @see Color#Color(float, float, float) */ public ColorWithAlternatives(float r, float g, float b, Color[] alternativeColors) { super(r, g, b); initAlternativeColors(alternativeColors); }
/** * Constructor for RGBA colors. * @param r the red component * @param g the green component * @param b the blue component * @param a the alpha component * @param alternativeColors the prioritized list of alternative colors. * @see Color#Color(float, float, float, float) */ public ColorWithAlternatives(float r, float g, float b, float a, Color[] alternativeColors) { super(r, g, b, a); initAlternativeColors(alternativeColors); }
/** * Constructor for colors with an arbitrary color space. * @param cspace the color space * @param components the color components * @param alpha the alpha component * @param alternativeColors the prioritized list of alternative colors. * @see Color#Color(ColorSpace, float[], float) */ public ColorWithAlternatives(ColorSpace cspace, float[] components, float alpha, Color[] alternativeColors) { super(cspace, components, alpha); initAlternativeColors(alternativeColors); }