/Users/johnr/Dropbox/johnrayworth.info/largeFilesOutsideJSR/__IB-Other/Other/IA-Solutions-2019/Proud/Product/ComputerScienceInternalAssessmentV2/src/computerscienceinternalassessment/Palette.java |
1
2
3
4
5
6 package computerscienceinternalassessment;
7
8 import java.awt.Color;
9 import java.util.Date;
10
11
12
13
14 @author
15
16 public class Palette {
17 private String paletteName = "not set yet";
18 private String paletteDescription = "not set yet";
19 private boolean forWork = false;
20 private int colorsQuantity = -999;
21 Color [] colors;
22
23
24
25
26
27 public Palette(){
28
29 }
30
31 public Palette(String paletteName, String paletteDescription, boolean forWork, int colorsQuantity, Color [] colors){
32
33
34 this.paletteName = paletteName;
35 this.paletteDescription = paletteDescription;
36 this.forWork = forWork;
37 this.colorsQuantity = colorsQuantity;
38 this.colors = colors;
39
40
41
42 }
43
44 public String getPaletteName(){
45 return paletteName;
46 }
47
48 public String getPaletteDescription(){
49 return paletteDescription;
50 }
51
52 public boolean getForWork(){
53 return forWork;
54 }
55
56 public int getColorsQuantity(){
57 return colorsQuantity;
58 }
59
60 public Color [] getColors(){
61 return colors ;
62 }
63
64
65
66
67
68
69 public void setPaletteName(String aB){
70 this.paletteName = paletteName;
71 }
72
73 public void setPaletteDescription(String a){
74 this.paletteDescription = paletteDescription;
75 }
76
77 public void setForWork(boolean a){
78 this.forWork = forWork;
79 }
80
81 public void setColorsQuantity(int n){
82 this.colorsQuantity = colorsQuantity;
83 }
84
85 public void setColors(Color [] array){
86 this.colors = colors;
87 }
88
89
90
91
92 }
93
94
95
96