|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectColorRule
public class ColorRule
A JGrass colorrule
Constructor Summary | |
---|---|
ColorRule(float cat0,
int r0,
int g0,
int b0,
float cat1,
int r1,
int g1,
int b1)
Creates a new instance of ColorRule |
|
ColorRule(int cat,
int r,
int g,
int b)
Creates a new instance of ColorRule |
Method Summary | |
---|---|
int |
compare(float cat)
|
float |
getCategoryRange()
|
byte[] |
getColor(float cat)
Return the colour tupple for specified category value |
float |
getLowCategoryValue()
|
static void |
parseColorRule(String colorRule,
List<Double> values,
List<Color> colors)
|
String |
toString()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ColorRule(int cat, int r, int g, int b)
public ColorRule(float cat0, int r0, int g0, int b0, float cat1, int r1, int g1, int b1)
Method Detail |
---|
public int compare(float cat)
public byte[] getColor(float cat)
public float getLowCategoryValue()
public float getCategoryRange()
public String toString()
toString
in class Object
public static void parseColorRule(String colorRule, List<Double> values, List<Color> colors)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |