|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.apps.graph.GraphUtil
public class GraphUtil
Graphic Utilities
| Constructor Summary | |
|---|---|
GraphUtil()
|
|
| Method Summary | |
|---|---|
static Color |
brighter(Color color,
double factor)
Get brighter color |
static double |
colorDistance(double r1,
double g1,
double b1,
double r2,
double g2,
double b2)
Simple Color Distance |
static Color |
darker(Color color,
double factor)
Get darker color |
static Color |
getBackground(int index)
Get Column Background |
static Color |
getForeground(Color background)
Get Foreground for back |
static boolean |
isDark(Color color)
Is the Color dark? |
static boolean |
isDark(double r,
double g,
double b)
Is Color more white or black? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphUtil()
| Method Detail |
|---|
public static Color getForeground(Color background)
background - back
public static Color getBackground(int index)
index - index
public static boolean isDark(Color color)
color - color
public static boolean isDark(double r,
double g,
double b)
r - redg - greenb - blue
public static double colorDistance(double r1,
double g1,
double b1,
double r2,
double g2,
double b2)
r1 - first redg1 - first greenb1 - first bluer2 - second redg2 - second greenb2 - second blue
public static Color darker(Color color,
double factor)
color - colorfactor - factor 0..1 (AWT 0.7) the smaller, the darker
public static Color brighter(Color color,
double factor)
color - colorfactor - factor 0..1 (AWT 0.7) the smaller, the lighter
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||