code: public void setStrokingColor (final double g) throws IOException
    {
      if (_isOutsideOneInterval (g))
      {
        throw new IllegalArgumentException ("Parameter must be within 0..1, but is " + g);
      }
      writeOperand ((float) g);
      writeOperator ((byte) 'G');
    }
docs: Set the stroking color in the DeviceGray color space. Range is 0..1.
  
  @param g
  The gray value.
  @throws IOException
  If an IO error occurs while writing to the stream.
  @throws IllegalArgumentException
  If the parameter is invalid.