1 58 package org.apache.ecs.rtf; 59 60 public class ColorGroup extends RTFElement 61 { 62 public static String RED = "\\red"; 63 public static String GREEN = "\\green"; 64 public static String BLUE = "\\blue"; 65 66 67 { 68 setElementType(";"); } 70 71 public ColorGroup() 72 { 73 } 74 75 public ColorGroup(int red,int green,int blue) 76 { 77 String r = RED+Integer.toString(red); 78 String g = GREEN+Integer.toString(green); 79 String b = BLUE+Integer.toString(blue); 80 setElementType(r+g+b+";"); 81 } 82 83 public String createStartTag() 84 { 85 return(getElementType()); 86 } 87 88 public String createEndTag() 89 { 90 return(""); 91 } 92 } 93 | Popular Tags |