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()
          Constructors *
GridBackground(GWColour background)
           
GridBackground(GWColour gridColour, GWColour background)
           
GridBackground(GWColour gridColour, GWColour background, boolean ShowXAxisLines, boolean ShowYAxisLines)
           
 
Method Summary
 void draw()
           
 void setGridColour(int R, int G, int B)
          Sets the colour of the major grid lines *
 void setGridColour(int Rx, int Gx, int Bx, int Ry, int Gy, int By)
          Set colour of grid lines independently *x sets X-axis line and *y set Y-axis line colours.
 void setGridLines(boolean ShowXAxisLines, boolean ShowYAxisLines)
          Sets which lines to to show *
 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()
Constructors *


GridBackground

public GridBackground(GWColour background)

GridBackground

public GridBackground(GWColour gridColour,
                      GWColour background)

GridBackground

public GridBackground(GWColour gridColour,
                      GWColour background,
                      boolean ShowXAxisLines,
                      boolean ShowYAxisLines)
Method Detail

setGridColour

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


setGridColour

public void setGridColour(int Rx,
                          int Gx,
                          int Bx,
                          int Ry,
                          int Gy,
                          int By)
Set colour of grid lines independently *x sets X-axis line and *y set Y-axis line colours. *


setNoGrid

public void setNoGrid()
Removes major grid lines *


setGridLines

public void setGridLines(boolean ShowXAxisLines,
                         boolean ShowYAxisLines)
Sets which lines to to show *


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