public class ColourGradient extends java.lang.Object implements ColourRamp, java.io.Serializable
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ColourGradient.Transition | 
| Constructor and Description | 
|---|
| ColourGradient(float n1,
              int colour1,
              float n2,
              int colour2) | 
| ColourGradient(float n1,
              int colour1,
              float n2,
              int colour2,
              ColourGradient.Transition transition) | 
| ColourGradient(int colour1,
              int colour2) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getColour(float n)Get the colour to use for a value  n. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPreview, getPreviewpublic ColourGradient(int colour1,
                      int colour2)
public ColourGradient(float n1,
                      int colour1,
                      float n2,
                      int colour2)
public ColourGradient(float n1,
                      int colour1,
                      float n2,
                      int colour2,
                      ColourGradient.Transition transition)
public int getColour(float n)
ColourRampn.getColour in interface ColourRampn - The value for which to get the colour.