Cartesian Plane Lesson 4: Drawing the Tick Marks and Labels

Line Drawing, Inner Classes, Interfaces, Generics, Iterators, Iterables, LineGenerator

In this lesson, we’ll finish drawing the tick marks and labels on our Cartesian plane graphic. We’ll also have another look at encapsulation, specifically in the context of line positioning and drawing. Our strategy for labeling the major tick marks will require us to discuss the Iterator and Iterable interfaces, and we’ll also have a look at inner classes. We’ll start with a discussion of the Iterator and Iterable interfaces.

GitHub repository: Cartesian Plane Part 4

Previous lesson: Cartesian Plane Lesson 3

Next: Cartesian Plane Lesson 4 Page 1: Iterators and Iterables