1 32 33 package it.businesslogic.ireport.chart; 34 35 import it.businesslogic.ireport.ChartReportElement2; 36 37 41 public class Axis { 42 43 private String position = "leftOrTop"; 44 private ChartReportElement2 chartReportElement = null; 45 46 47 public Axis() { 48 setChartReportElement(new ChartReportElement2(0, 0, 0, 0)); 49 getChartReportElement().setChart( new BarChart() ); 50 } 51 52 public Axis cloneMe() 53 { 54 Axis obj = new Axis(); 55 obj.setPosition( new String ( getPosition())); 56 obj.setChartReportElement( (ChartReportElement2)getChartReportElement().cloneMe() ); 57 58 return obj; 59 } 60 61 public String getPosition() { 62 return position; 63 } 64 65 public void setPosition(String position) { 66 this.position = position; 67 } 68 69 70 public ChartReportElement2 getChartReportElement() { 71 return chartReportElement; 72 } 73 74 public void setChartReportElement(ChartReportElement2 chartReportElement) { 75 this.chartReportElement = chartReportElement; 76 } 77 78 public String toString() 79 { 80 return getChartReportElement().getChart().getName(); 81 } 82 } 83 | Popular Tags |