public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[PALETTE]\n");buffer.append("  numcolors     = ").append(_colors.size()).append('\n');for (int i = 0; i < _colors.size(); i++) {PColor c = _colors.get(i);buffer.append("* colornum      = ").append(i).append('\n');buffer.append(c);buffer.append("

public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("  red           = ").Append(_red & 0xff).Append('\n');buffer.Append("  green         = ").Append(_green & 0xff).Append('\n');buffer.Append("  blue          = ").Append(_blue & 0xff).Append('\n');return buffer.ToString();}
