ICatchGLColor interface

  1. package com.icatchtek.pancam.customer.type;
  2. public class ICatchGLColor
  3. extends java.lang.Object {
  4. ...
  5. }

The color of the SDK. Each r, g, b attribute should not be more than 255.

Field Detail

BLACK

  1. public static final ICatchGLColor BLACK

The black color

WHITE

  1. public static final ICatchGLColor WHITE

The white color

RED

  1. public static final ICatchGLColor RED

The red color

GREEN

  1. public static final ICatchGLColor GREEN

The green color

BLUE

  1. public static final ICatchGLColor BLUE

The blue color

Constructor

ICatchGLColor

  1. public ICatchGLColor()

Default constructor, black color.

ICatchGLColor

  1. public ICatchGLColor(int r,
  2. int g,
  3. int b,
  4. int a)

The constructor with user specified r,g,b,a.
Parameters:

  • r - red component.
  • g - green component.
  • b - blue component.
  • a - alpha component.**

Public methods

getR

  1. public int getR()

Get the red component.
Returns:
Red component.

setR

  1. public void setR(int r)

Set the red component.
Parameters:

  • r - Red component.

getG

  1. public int getG()

Get the green component.
Returns:
Green component.

setG

  1. public void setG(int g)

Set the green component.
Parameters:

  • g- Green component.

getB

  1. public int getB()

Get the blue component.
Returns:
Blue component.

setB

  1. public void setB(int b)

Set the blue component.
Parameters:

  • b - Blue component.

getA

  1. public int getA()

Get alpha component.
Returns:
Alpha component.

setA

  1. public void setA(int a)

Set alpha component.
Parameters:

  • a - Alpha component.