public void setB ( final int b ) { if ( b < 0 || b > 255 ) { throw new InvalidValueException ( "b paramater accept values only from 0 to 255." ) ; } this . b = b ; rgba = "rgba(" + r + ", " + g + ", " + b + ", " + a + ")" ; if ( getStateChangeInformer ( ) != null ) { getStateChangeInformer ( ) . stateChanged ( this ) ; } }
to set the blue value which is in between 0 to 255 .