Public Member Functions | |
int | nextColor () |
Static Public Member Functions | |
static int | convertColor (int red, int green, int blue, int alpha) |
static int | getAlpha (int color) |
static int | getBlue (int color) |
static int | getColor () |
static int | getGreen (int color) |
static int | getRed (int color) |
Static Public Attributes | |
static int[][] | defaultColors |
static Colors | defaultInstance |
Static Package Functions | |
[static initializer] | |
Private Attributes | |
int | currentDefaultColor |
implements some Color features. can be used static (Colors.getColor()) different colors each time (at least the first 18 times). can also be used instantiated. (new Colors()).nextColor();
Definition at line 9 of file Colors.java.
edu.tum.cs.ias.knowrob.util.Colors.[static initializer] | ( | ) | [inline, static, package] |
static int edu.tum.cs.ias.knowrob.util.Colors.convertColor | ( | int | red, |
int | green, | ||
int | blue, | ||
int | alpha | ||
) | [inline, static] |
creates a color out of it's red, green, blue and alpha components
Definition at line 39 of file Colors.java.
static int edu.tum.cs.ias.knowrob.util.Colors.getAlpha | ( | int | color | ) | [inline, static] |
Definition at line 51 of file Colors.java.
static int edu.tum.cs.ias.knowrob.util.Colors.getBlue | ( | int | color | ) | [inline, static] |
Definition at line 48 of file Colors.java.
static int edu.tum.cs.ias.knowrob.util.Colors.getColor | ( | ) | [inline, static] |
returns the next unused color of the default instance
Definition at line 68 of file Colors.java.
static int edu.tum.cs.ias.knowrob.util.Colors.getGreen | ( | int | color | ) | [inline, static] |
Definition at line 45 of file Colors.java.
static int edu.tum.cs.ias.knowrob.util.Colors.getRed | ( | int | color | ) | [inline, static] |
Definition at line 42 of file Colors.java.
int edu.tum.cs.ias.knowrob.util.Colors.nextColor | ( | ) | [inline] |
returns the next unused color (18 different colors currently implemented) of this instance
Definition at line 59 of file Colors.java.
int edu.tum.cs.ias.knowrob.util.Colors.currentDefaultColor [private] |
Definition at line 34 of file Colors.java.
int [][] edu.tum.cs.ias.knowrob.util.Colors.defaultColors [static] |
new int[][] { {255,0,0,255}, {255,255,0,255}, {0,0,255,255}, {255,0,255,255}, {150,150,0,255}, {0,150,150,255}, {0,255,0,255}, {150,0,0,255}, {0,150,0,255}, {150,0,150,255}, {0,255,255,255}, {0,150,255,255}, {150,0,255,255}, {0,255,150,255}, {0,0,150,255}, {150,255,0,255}, {255,0,150,255}, {255,150,0,255}, }
Definition at line 13 of file Colors.java.
Definition at line 10 of file Colors.java.