Application for drawing lines and circles in Java. Design Patterns.