com.kuka.roboticsAPI.capabilities.ledStrip
Class SegmentColor

java.lang.Object
  extended by com.kuka.roboticsAPI.capabilities.ledStrip.SegmentColor

public class SegmentColor
extends Object

An enumeration holds the possible LED strip segment colors.


Field Summary
static SegmentColor BLUE
          Blue color.
static SegmentColor CYAN
          Cyan color.
static SegmentColor GREEN
          Green color.
static SegmentColor MAGENTA
          Magenta color.
static SegmentColor OFF
          A value represents the switched-off color.
static SegmentColor RED
          Red color.
static SegmentColor WHITE
          White color.
static SegmentColor YELLOW
          Yellow color (the green component is intentionally 140 instead of 255 for a more "yellowish" color).
 
Constructor Summary
SegmentColor(int red, int green, int blue)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 int getBlue()
          Returns the blue color component.
 int getGreen()
          Returns the green color component.
 int getRed()
          Returns the red color component.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OFF

public static final SegmentColor OFF
A value represents the switched-off color.


RED

public static final SegmentColor RED
Red color.


GREEN

public static final SegmentColor GREEN
Green color.


BLUE

public static final SegmentColor BLUE
Blue color.


YELLOW

public static final SegmentColor YELLOW
Yellow color (the green component is intentionally 140 instead of 255 for a more "yellowish" color).


CYAN

public static final SegmentColor CYAN
Cyan color.


MAGENTA

public static final SegmentColor MAGENTA
Magenta color.


WHITE

public static final SegmentColor WHITE
White color.

Constructor Detail

SegmentColor

public SegmentColor(int red,
                    int green,
                    int blue)
Constructor. Initializes the RGB values of the color.

Parameters:
red - The red component.
green - The green component.
blue - The blue component.
Method Detail

getRed

public int getRed()
Returns the red color component.

Returns:
The red color component.

getGreen

public int getGreen()
Returns the green color component.

Returns:
The green color component.

getBlue

public int getBlue()
Returns the blue color component.

Returns:
The blue color component.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2019. All rights reserved.