Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Package Functions | Private Attributes
edu.tum.cs.ias.knowrob.util.Colors Class Reference

List of all members.

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

Detailed Description

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();

Author:
Jakob

Definition at line 9 of file Colors.java.


Member Function Documentation

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.

returns the next unused color (18 different colors currently implemented) of this instance

Returns:

Definition at line 59 of file Colors.java.


Member Data Documentation

Definition at line 34 of file Colors.java.

Initial value:
 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.


The documentation for this class was generated from the following file:


mod_vis
Author(s): Moritz Tenorth, Jakob Engel
autogenerated on Mon Oct 6 2014 01:30:00