Dunno, didn't read the details..
Code:
switch (drawing) {
case RECTANGLE: (...)
This is what you need.... You just make an enum (MyDearStringEnum

) with these string
elements ("black", "blue", "yellow", "TcM" etc) and put
switch (MyDearStringEnum)
case "black": etc...
Or just use ifs.