/Users/johnr/Dropbox/johnrayworth.info/largeFilesOutsideJSR/__IB-Other/Other/IA-Solutions-2019/Proud/Product/ComputerScienceInternalAssessmentV2/src/computerscienceinternalassessment/Palette.java
 1 /*
 2  * To change this license header, choose License Headers in Project Properties.
 3  * To change this template file, choose Tools | Templates
 4  * and open the template in the editor.
 5  */
 6 package computerscienceinternalassessment;
 7 
 8 import java.awt.Color; //right now I am not using the myColor class
 9 import java.util.Date;
10 
11 
12 /**
13  *
14  * @author 14914
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; //is this how it works? 
22     
23    
24     //how to use date class? 
25     //myColor class needs working
26     
27     public Palette(){
28         
29     }
30     
31     public Palette(String paletteName, String paletteDescription, boolean forWork, int colorsQuantity, Color [] colors){
32         //super for color? bc it has a constructor
33         
34         this.paletteName = paletteName;
35         this.paletteDescription = paletteDescription;
36         this.forWork = forWork;
37         this.colorsQuantity = colorsQuantity;
38         this.colors = colors; //this will now be in a separate class.
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