Added a setParent method to the GraphicsController.