Let Shape, Color, Shading enums be retrieved by int value

Added valueOf method to each of these enums
Forgot one thing