My Project
 All Classes Files Functions
Public Member Functions | Static Public Member Functions | List of all members
ColourList Class Reference

Public Member Functions

Color Get (int numberOfItems)
 
boolean Add (Color colour)
 
 ColourList (int numberOfItems, String colourScheme)
 
 ColourList (ArrayList< Color > userColourList)
 
String toString ()
 

Static Public Member Functions

static void main (String args[])
 

Constructor & Destructor Documentation

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
numberOfItemsis the number of colours needed
colourSchemeis 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
userColourListis the ArrayList<Color> created by the user

Member Function Documentation

boolean ColourList.Add ( Color  colour)
inline

This method adds a single colour onto the end of the ArrayList

Parameters
colouris 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
numberOfItemsis 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
argsis 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: