1
package org.herac.tuxguitar.song.models;
3
public class RGBColor {
4
public static final RGBColor RED = new RGBColor(255,0,0);
5
public static final RGBColor GREEN = new RGBColor(0,255,0);
6
public static final RGBColor BLUE = new RGBColor(0,0,255);
7
public static final RGBColor WHITE = new RGBColor(255,255,255);
8
public static final RGBColor BLACK = new RGBColor(0,0,0);
14
public RGBColor(int r,int g,int b){
24
public void setB(int b) {
32
public void setG(int g) {
40
public void setR(int r) {
44
public boolean isEqual(RGBColor color){
45
return (this.getR() == color.getR() && this.getG() == color.getG() && this.getB() == color.getB());
48
public Object clone(){
49
return new RGBColor(getR(),getG(),getB());