painter
Class ValuePainter

java.lang.Object
  extended by painter.ValuePainter
All Implemented Interfaces:
IPainter

public class ValuePainter
extends java.lang.Object
implements IPainter


Constructor Summary
ValuePainter(double s)
          constructor
 
Method Summary
 RGBColor getColor(IntersectionInfo intersection)
           
 IPainter getCopy()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValuePainter

public ValuePainter(double s)
constructor

Parameters:
s -
Method Detail

getColor

public RGBColor getColor(IntersectionInfo intersection)
Specified by:
getColor in interface IPainter
Returns:
the computed color as an RGBColor

getCopy

public IPainter getCopy()
Specified by:
getCopy in interface IPainter
Returns:
a copy of the painter