public class ColorRule
extends Object
A JGrass colorrule
- Since:
- 1.1.0
- Author:
- Andrea Antonello - www.hydrologis.com, John Preston
-
Constructor Summary
Constructors
ColorRule(float cat0,
int r0,
int g0,
int b0,
float cat1,
int r1,
int g1,
int b1)
Creates a new instance of ColorRule
Creates a new instance of ColorRule
-
Method Summary
int
float
byte[]
Return the colour tupple for specified category value
float
static void
-
Constructor Details
-
ColorRule
public ColorRule(int cat,
int r,
int g,
int b)
Creates a new instance of ColorRule
-
ColorRule
public ColorRule(float cat0,
int r0,
int g0,
int b0,
float cat1,
int r1,
int g1,
int b1)
Creates a new instance of ColorRule
-
Method Details
-
compare
public int compare(float cat)
-
getColor
public byte[] getColor(float cat)
Return the colour tupple for specified category value
-
getLowCategoryValue
public float getLowCategoryValue()
-
getCategoryRange
public float getCategoryRange()
-
-