rectState = new RectState(context);
ellipseState = new EllipseState(context);
polygonState = new PolygonState(context);
pencilState = new PencilState(context);
eraserState = new EraserState(context);
textState = new TextState(context);
rotationState = new RotationState(context);
expandState = new ExpandState(context);
clippingState = new ClippingState(context);
dotsState = new DotsState(context);