Class FiveColorScale

java.lang.Object
  extended by FiveColorScale

public class FiveColorScale
extends Object

Represents a five-color scale as a smooth transition between the two terminal colors in the scale.


Constructor Summary
FiveColorScale()
          Constructs a default (gray) scale from white to black.
FiveColorScale(Color first, Color last)
          Constructs a scale from first to last values specified.
 
Method Summary
 Color get1()
          Returns a reference to color level 1.
 Color get2()
          Returns a reference to color level 2.
 Color get3()
          Returns a reference to color level 3.
 Color get4()
          Returns a reference to color level 4.
 Color get5()
          Returns a reference to color level 5.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FiveColorScale

public FiveColorScale()
Constructs a default (gray) scale from white to black.


FiveColorScale

public FiveColorScale(Color first,
                      Color last)
Constructs a scale from first to last values specified.

Parameters:
first - the first color value.
last - the last color value.
Method Detail

get1

public Color get1()
Returns a reference to color level 1.

Returns:
first color value.

get2

public Color get2()
Returns a reference to color level 2.

Returns:
second color value.

get3

public Color get3()
Returns a reference to color level 3.

Returns:
third color value.

get4

public Color get4()
Returns a reference to color level 4.

Returns:
fourth color value.

get5

public Color get5()
Returns a reference to color level 5.

Returns:
last color value.