1 32 33 package it.businesslogic.ireport.chart; 34 35 39 public class CandlestickPlot extends Plot{ 40 41 private boolean showVolume = true; 42 43 private String timeAxisLabelExpression = ""; 44 private String valueAxisLabelExpression = ""; 45 46 private AxisFormat timeAxisFormat = new AxisFormat(); 47 private AxisFormat valueAxisFormat = new AxisFormat(); 48 49 50 public CandlestickPlot() { 51 } 52 53 public String getTimeAxisLabelExpression() { 54 return timeAxisLabelExpression; 55 } 56 57 public void setTimeAxisLabelExpression(String timeAxisLabelExpression) { 58 this.timeAxisLabelExpression = timeAxisLabelExpression; 59 } 60 61 public String getValueAxisLabelExpression() { 62 return valueAxisLabelExpression; 63 } 64 65 public void setValueAxisLabelExpression(String valueAxisLabelExpression) { 66 this.valueAxisLabelExpression = valueAxisLabelExpression; 67 } 68 69 public boolean isShowVolume() { 70 return showVolume; 71 } 72 73 public void setShowVolume(boolean showVolume) { 74 this.showVolume = showVolume; 75 } 76 77 public Plot cloneMe() 78 { 79 CandlestickPlot obj = new CandlestickPlot(); 80 copyBasePlot(obj); 81 obj.setShowVolume( this.isShowVolume()); 82 obj.setTimeAxisLabelExpression( this.getTimeAxisLabelExpression()); 83 obj.setValueAxisLabelExpression( this.getValueAxisLabelExpression()); 84 obj.setTimeAxisFormat( getTimeAxisFormat().cloneMe()); 85 obj.setValueAxisFormat( getValueAxisFormat().cloneMe()); 86 87 return obj; 88 } 89 90 public AxisFormat getTimeAxisFormat() { 91 return timeAxisFormat; 92 } 93 94 public void setTimeAxisFormat(AxisFormat timeAxisFormat) { 95 this.timeAxisFormat = timeAxisFormat; 96 } 97 98 public AxisFormat getValueAxisFormat() { 99 return valueAxisFormat; 100 } 101 102 public void setValueAxisFormat(AxisFormat valueAxisFormat) { 103 this.valueAxisFormat = valueAxisFormat; 104 } 105 106 } 107 | Popular Tags |