Class ColorAdapter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Color getColor()
      Return the Red, Green and Blue values together in one object.
      int getColorID()
      Return an enumerated constant that indicates the color detected.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ColorAdapter

        public ColorAdapter​(BaseSensor colorSensor)
    • Method Detail

      • getColorID

        public int getColorID()
        Description copied from interface: ColorIdentifier
        Return an enumerated constant that indicates the color detected. e.g. Color.BLUE
        Specified by:
        getColorID in interface ColorIdentifier
        Returns:
        An integer from the Color constants, such as Color.BLUE
      • getColor

        public Color getColor()
        Description copied from interface: ColorDetector
        Return the Red, Green and Blue values together in one object.
        Specified by:
        getColor in interface ColorDetector
        Returns:
        Color object containing the three RGB component values between 0-255.