public class OurColormap
extends java.lang.Object
Constructor and Description |
---|
OurColormap(org.eclipse.swt.widgets.Display display) |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkRange(double a,
double b,
double score)
helping method for getColor, checks if an integer is between a given range
|
org.eclipse.swt.graphics.Color |
getBlack() |
org.eclipse.swt.graphics.Color |
getColor(double score)
returns colorfor a score.
|
org.eclipse.swt.graphics.Color |
getColorbyIndex(int j)
returns color using a given index
|
org.eclipse.swt.graphics.Color |
getWhite() |
public org.eclipse.swt.graphics.Color getWhite()
public org.eclipse.swt.graphics.Color getBlack()
public org.eclipse.swt.graphics.Color getColor(double score)
score
- public static boolean checkRange(double a, double b, double score)
a
- b
- score
- public org.eclipse.swt.graphics.Color getColorbyIndex(int j)
j
-