org.gwoptics.graphics.graph2D.effects
Class XAxisColourmapEffect

java.lang.Object
  extended by org.gwoptics.graphics.graph2D.effects.AxisColourmapEffect
      extended by org.gwoptics.graphics.graph2D.effects.XAxisColourmapEffect
All Implemented Interfaces:
ITraceColourEffect

public class XAxisColourmapEffect
extends AxisColourmapEffect

Since:
0.4.0
Author:
Daniel Brown 13/7/09

Constructor Summary
XAxisColourmapEffect(IColourmap map)
           
 
Method Summary
 GWColour getPixelColour(int pos, int pos2, float xVal, float yVal)
          The trace this effect relates to should call this function for each segment of the trace.
 
Methods inherited from class org.gwoptics.graphics.graph2D.effects.AxisColourmapEffect
setXAxisValues, setYAxisValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAxisColourmapEffect

public XAxisColourmapEffect(IColourmap map)
Method Detail

getPixelColour

public GWColour getPixelColour(int pos,
                               int pos2,
                               float xVal,
                               float yVal)
Description copied from interface: ITraceColourEffect
The trace this effect relates to should call this function for each segment of the trace. it should provide the x and y position and graph value of the segment so this function can generate a colour to return.

Returns:


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