org.gwoptics.graphics.graph2D.backgrounds
Class GridBackground

java.lang.Object
  extended by org.gwoptics.graphics.graph2D.backgrounds.SolidColourBackground
      extended by org.gwoptics.graphics.graph2D.backgrounds.GridBackground
All Implemented Interfaces:
IGraph2DBackground, IRenderable

public class GridBackground
extends SolidColourBackground


Constructor Summary
GridBackground(GWColour gridColour, GWColour background)
           
 
Method Summary
 void draw()
           
 void setGridColour(int R, int G, int B)
          Sets the colour of the major grid lines
 void setNoGrid()
          Removes major grid lines
 
Methods inherited from class org.gwoptics.graphics.graph2D.backgrounds.SolidColourBackground
setAxes, setBackgroundColour, setDimensions, setNoBackground, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridBackground

public GridBackground(GWColour gridColour,
                      GWColour background)
Method Detail

setGridColour

public void setGridColour(int R,
                          int G,
                          int B)
Sets the colour of the major grid lines


setNoGrid

public void setNoGrid()
Removes major grid lines


draw

public void draw()
Specified by:
draw in interface IRenderable
Overrides:
draw in class SolidColourBackground


processing library gwoptics by Daniel Brown and Andreas Freise. (c) 2009 onwards