org.gwoptics.graphics.graph2D.backgrounds
Class SolidColourBackground

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

public class SolidColourBackground
extends java.lang.Object
implements IGraph2DBackground


Constructor Summary
SolidColourBackground(GWColour bk)
           
 
Method Summary
 void draw()
           
 void setAxes(Axis2D x, Axis2D y)
           
 void setBackgroundColour(int R, int G, int B)
          Sets the background colour of the graph
 void setDimensions(int width, int height)
           
 void setNoBackground()
          Removes any background
 void setParent(processing.core.PApplet parent)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolidColourBackground

public SolidColourBackground(GWColour bk)
Method Detail

setBackgroundColour

public void setBackgroundColour(int R,
                                int G,
                                int B)
Sets the background colour of the graph


setNoBackground

public void setNoBackground()
Removes any background


setAxes

public void setAxes(Axis2D x,
                    Axis2D y)
Specified by:
setAxes in interface IGraph2DBackground

setDimensions

public void setDimensions(int width,
                          int height)
Specified by:
setDimensions in interface IGraph2DBackground

setParent

public void setParent(processing.core.PApplet parent)
Specified by:
setParent in interface IRenderable

draw

public void draw()
Specified by:
draw in interface IRenderable


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