trinidad-api/src/main/java/org/apache/myfaces/trinidad/convert/RGBColorFormat.java [502:530]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  private StringBuffer _subFormat(
    Color color,
    char ch,
    int count,
    StringBuffer toAppendTo) throws IllegalArgumentException
  {
    switch (ch)
    {
      case 'r':
        return _subFormatDecimal(color.getRed(), count, toAppendTo);
      case 'g':
        return _subFormatDecimal(color.getGreen(), count, toAppendTo);
      case 'b':
        return _subFormatDecimal(color.getBlue(), count, toAppendTo);
      case 'a':
        return _subFormatDecimal(color.getAlpha(), count, toAppendTo);
      case 'R':
        return _subFormatHex(color.getRed(), count, toAppendTo);
      case 'G':
        return _subFormatHex(color.getGreen(), count, toAppendTo);
      case 'B':
        return _subFormatHex(color.getBlue(), count, toAppendTo);
      case 'A':
        return _subFormatHex(color.getAlpha(), count, toAppendTo);
      default:
        throw new IllegalArgumentException(_LOG.getMessage(
          "ILLEGAL_PATTERN_CHARACTER", ch));
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/share/text/RGBColorFormat.java [498:526]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  private StringBuffer _subFormat(
    Color color,
    char ch, 
    int count, 
    StringBuffer toAppendTo) throws IllegalArgumentException
  {
    switch (ch)
    {
      case 'r':
        return _subFormatDecimal(color.getRed(), count, toAppendTo);
      case 'g':
        return _subFormatDecimal(color.getGreen(), count, toAppendTo);
      case 'b':
        return _subFormatDecimal(color.getBlue(), count, toAppendTo);
      case 'a':
        return _subFormatDecimal(color.getAlpha(), count, toAppendTo);
      case 'R':
        return _subFormatHex(color.getRed(), count, toAppendTo);
      case 'G':
        return _subFormatHex(color.getGreen(), count, toAppendTo);
      case 'B':
        return _subFormatHex(color.getBlue(), count, toAppendTo);
      case 'A':
        return _subFormatHex(color.getAlpha(), count, toAppendTo);
      default:
        throw new IllegalArgumentException(_LOG.getMessage(
          ">ILLEGAL_PATTERN_CHARACTER", ch));
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



