/* * ============================================================================ * GraphicsOperation.java: Definition and Management of the graphics operations * and functionality, e.g., drawing a simple grid. * * Written By : Mark Austin November 2011 * ============================================================================ */ public class GraphicsOperation { // Set boolean variables for supporting graphical operations ... public boolean grid = false; // Methods to control grid setting ... public boolean getGrid() { return grid; } public void setGrid( boolean grid ) { this.grid = grid; } // Methods to switch grid display .... void setGridOn() { grid = true; } void setGridOff() { grid = false; } }