5.4.1 Grid2D

Grid is composed of regularly spaced horizontal and vertical lines. Frequently, both horizontal and vertical lines are needed. However, there is a possibility to disable them. This can be achieved passing null values when creating grid object.

Setting grid:

 
// Sets Grid object, named grid, only with vertical lines,
// where yMapper is instance of AxisMapper
Grid grid = new Grid(null, yMapper);

Grid with horizontal lines demonstration

Figure 5.4.1.1 Grid with horizontal lines

Setting grid:

 
// Sets Grid object, named grid, with no lines
Grid grid = new Grid(null, null);

Grid with no lines demonstration

Figure 5.4.1.2 Grid with no lines