Tidying up code

Java enums are capitalized by convention. Also added an early escape in
DrawView.setMode()