1 15 package org.apache.tapestry.workbench.chart; 16 17 import java.io.Serializable ; 18 19 25 26 public class PlotValue implements Serializable 27 { 28 private String name; 29 30 private int value; 31 32 public PlotValue() 33 { 34 } 35 36 public PlotValue(String name, int value) 37 { 38 this.name = name; 39 this.value = value; 40 } 41 42 public String getName() 43 { 44 return name; 45 } 46 47 public void setName(String name) 48 { 49 this.name = name; 50 } 51 52 public int getValue() 53 { 54 return value; 55 } 56 57 public void setValue(int value) 58 { 59 this.value = value; 60 } 61 62 public String toString() 63 { 64 StringBuffer buffer = new StringBuffer ("PlotValue@"); 65 buffer.append(Integer.toHexString(hashCode())); 66 buffer.append('['); 67 buffer.append(name); 68 buffer.append(' '); 69 buffer.append(value); 70 buffer.append(']'); 71 72 return buffer.toString(); 73 } 74 } | Popular Tags |