1 19 20 package soot.xml; 21 22 import java.io.*; 23 24 public class Key { 25 26 private int red; 27 private int green; 28 private int blue; 29 private String key; 30 private String aType; 31 32 public Key(int r, int g, int b, String k){ 33 red = r; 34 green = g; 35 blue = b; 36 key = k; 37 } 38 39 public int red(){ 40 return red; 41 } 42 43 public int green(){ 44 return green; 45 } 46 47 public int blue() { 48 return blue; 49 } 50 51 public String key(){ 52 return key; 53 } 54 55 public void print(PrintWriter writerOut){ 56 writerOut.println("<key red=\""+red()+"\" green=\""+green()+"\" blue=\""+blue()+"\" key=\""+key()+"\" aType=\""+aType()+"\"/>"); 57 } 58 59 public String aType(){ 60 return aType; 61 } 62 63 public void aType(String s){ 64 aType = s; 65 } 66 } 67 | Popular Tags |