1 package com.foxinmy.weixin4j.wxa.api; 2 3 import java.io.Serializable; 4 5 class Color implements Serializable { 6 7 private static final long serialVersionUID = 2018052201L; 8 9 private String r; 10 private String g; 11 private String b; 12 13 public Color() { 14 } 15 16 public Color(java.awt.Color color) { 17 this.r = String.valueOf(color.getRed()); 18 this.g = String.valueOf(color.getGreen()); 19 this.b = String.valueOf(color.getBlue()); 20 } 21 22 public String getR() { 23 return r; 24 } 25 26 public void setR(String r) { 27 this.r = r; 28 } 29 30 public String getG() { 31 return g; 32 } 33 34 public void setG(String g) { 35 this.g = g; 36 } 37 38 public String getB() { 39 return b; 40 } 41 42 public void setB(String b) { 43 this.b = b; 44 } 45 46 }