예제 #1
0
 @Override
 public void write(final OutputStream out) throws IOException {
   out.write(TYPE_COLOR);
   super.write(out);
   out.write(color.getRed());
   out.write(color.getGreen());
   out.write(color.getBlue());
   out.write(color.getAlpha());
 }
예제 #2
0
 @Override
 public void load(final HexFieldValue val) {
   super.load(val);
   this.color = ((HexColorValue) val).getColor();
 }