|
Color | Get (int numberOfItems) |
|
boolean | Add (Color colour) |
|
| ColourList (int numberOfItems, String colourScheme) |
|
| ColourList (ArrayList< Color > userColourList) |
|
String | toString () |
|
|
static void | main (String args[]) |
|
ColourList.ColourList |
( |
int |
numberOfItems, |
|
|
String |
colourScheme |
|
) |
| |
|
inline |
This method is one of the two constructors, this one is used if a non-user defined colour scheme is needed
- Parameters
-
numberOfItems | is the number of colours needed |
colourScheme | is the name of the colourScheme chosen |
ColourList.ColourList |
( |
ArrayList< Color > |
userColourList | ) |
|
|
inline |
This method is the second constructor, used if a user defined colour scheme is being used
- Parameters
-
userColourList | is the ArrayList<Color> created by the user |
boolean ColourList.Add |
( |
Color |
colour | ) |
|
|
inline |
This method adds a single colour onto the end of the ArrayList
- Parameters
-
colour | is the generated Color to be added to the ArrayList |
- Returns
- the boolean, corresponding to if the input colour is valid
Color ColourList.Get |
( |
int |
numberOfItems | ) |
|
|
inline |
This method returns a single colour, at an index calculated using the number of colours needed, and the length of the colour arraylist
- Parameters
-
numberOfItems | is an int equal to the number of colours required |
- Returns
- the colour at the specified index, calculated as described above
static void ColourList.main |
( |
String |
args[] | ) |
|
|
inlinestatic |
This method is the main method, and is never called by the software, it is only here to test the ArrayList<Color> with test values
- Parameters
-
args | is the String array equal to each term entered after the program call in the command line |
String ColourList.toString |
( |
| ) |
|
|
inline |
This method produces a string representation of the ArrayList<Color>
- Returns
- the String representation of the ArrayList<Color>
The documentation for this class was generated from the following file: