private final void setColor ( ColorSet colorSet ) { int [ ] rgb = ColorSet . getRGB ( colorSet ) ; this . red = rgb [ 0 ] / 255.0 ; this . green = rgb [ 1 ] / 255.0 ; this . blue = rgb [ 2 ] / 255.0 ; }
Returns the colorset s RGB values .