1 32 33 package it.businesslogic.ireport.chart; 34 35 39 public class XYSeries { 40 41 private String seriesExpression = ""; 42 private String xValueExpression = ""; 43 private String yValueExpression = ""; 44 private String labelExpression = ""; 45 private SectionItemHyperlink sectionItemHyperlink = new SectionItemHyperlink(); 46 47 48 public XYSeries() { 49 } 50 51 public String getSeriesExpression() { 52 return seriesExpression; 53 } 54 55 public void setSeriesExpression(String seriesExpression) { 56 this.seriesExpression = seriesExpression; 57 } 58 59 public String getLabelExpression() { 60 return labelExpression; 61 } 62 63 public void setLabelExpression(String labelExpression) { 64 this.labelExpression = labelExpression; 65 } 66 67 public String toString() 68 { 69 String str = getSeriesExpression(); 70 if (str == null) str = ""; 71 if (str.length() > 50) str = str.substring(0,30); 72 73 return "XY series [" + str + "]"; 74 } 75 76 public String getXValueExpression() { 77 return xValueExpression; 78 } 79 80 public void setXValueExpression(String xValueExpression) { 81 this.xValueExpression = xValueExpression; 82 } 83 84 public String getYValueExpression() { 85 return yValueExpression; 86 } 87 88 public void setYValueExpression(String yValueExpression) { 89 this.yValueExpression = yValueExpression; 90 } 91 92 public XYSeries cloneMe() 93 { 94 XYSeries cs = new XYSeries(); 95 cs.setSeriesExpression( this.getSeriesExpression()); 96 cs.setXValueExpression( this.getXValueExpression()); 97 cs.setYValueExpression( this.getYValueExpression()); 98 cs.setLabelExpression( this.getLabelExpression()); 99 cs.setSectionItemHyperlink( this.getSectionItemHyperlink().cloneMe()); 100 101 return cs; 102 } 103 104 public SectionItemHyperlink getSectionItemHyperlink() { 105 return sectionItemHyperlink; 106 } 107 108 public void setSectionItemHyperlink(SectionItemHyperlink sectionItemHyperlink) { 109 this.sectionItemHyperlink = sectionItemHyperlink; 110 } 111 112 } 113 | Popular Tags |