private double getColor ( Expression exp , CssFormatter formatter ) { type = exp . getDataType ( formatter ) ; switch ( type ) { case COLOR : case RGBA : return exp . doubleValue ( formatter ) ; } throw new ParameterOutOfBoundsException ( ) ; }
Get a color value from the expression . And set the type variable .