001: /*
002: * Copyright (C) 2005 - 2008 JasperSoft Corporation. All rights reserved.
003: * http://www.jaspersoft.com.
004: *
005: * Unless you have purchased a commercial license agreement from JasperSoft,
006: * the following license terms apply:
007: *
008: * This program is free software; you can redistribute it and/or modify
009: * it under the terms of the GNU General Public License version 2 as published by
010: * the Free Software Foundation.
011: *
012: * This program is distributed WITHOUT ANY WARRANTY; and without the
013: * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
014: * See the GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
018: * or write to:
019: *
020: * Free Software Foundation, Inc.,
021: * 59 Temple Place - Suite 330,
022: * Boston, MA USA 02111-1307
023: *
024: *
025: *
026: *
027: * CandlestickPlot.java
028: *
029: * Created on 16 agosto 2005, 10.19
030: *
031: */
032:
033: package it.businesslogic.ireport.chart;
034:
035: /**
036: *
037: * @author Administrator
038: */
039: public class CandlestickPlot extends Plot {
040:
041: private boolean showVolume = true;
042:
043: private String timeAxisLabelExpression = "";
044: private String valueAxisLabelExpression = "";
045:
046: private AxisFormat timeAxisFormat = new AxisFormat();
047: private AxisFormat valueAxisFormat = new AxisFormat();
048:
049: /** Creates a new instance of PiePlot */
050: public CandlestickPlot() {
051: }
052:
053: public String getTimeAxisLabelExpression() {
054: return timeAxisLabelExpression;
055: }
056:
057: public void setTimeAxisLabelExpression(
058: String timeAxisLabelExpression) {
059: this .timeAxisLabelExpression = timeAxisLabelExpression;
060: }
061:
062: public String getValueAxisLabelExpression() {
063: return valueAxisLabelExpression;
064: }
065:
066: public void setValueAxisLabelExpression(
067: String valueAxisLabelExpression) {
068: this .valueAxisLabelExpression = valueAxisLabelExpression;
069: }
070:
071: public boolean isShowVolume() {
072: return showVolume;
073: }
074:
075: public void setShowVolume(boolean showVolume) {
076: this .showVolume = showVolume;
077: }
078:
079: public Plot cloneMe() {
080: CandlestickPlot obj = new CandlestickPlot();
081: copyBasePlot(obj);
082: obj.setShowVolume(this .isShowVolume());
083: obj.setTimeAxisLabelExpression(this
084: .getTimeAxisLabelExpression());
085: obj.setValueAxisLabelExpression(this
086: .getValueAxisLabelExpression());
087: obj.setTimeAxisFormat(getTimeAxisFormat().cloneMe());
088: obj.setValueAxisFormat(getValueAxisFormat().cloneMe());
089:
090: return obj;
091: }
092:
093: public AxisFormat getTimeAxisFormat() {
094: return timeAxisFormat;
095: }
096:
097: public void setTimeAxisFormat(AxisFormat timeAxisFormat) {
098: this .timeAxisFormat = timeAxisFormat;
099: }
100:
101: public AxisFormat getValueAxisFormat() {
102: return valueAxisFormat;
103: }
104:
105: public void setValueAxisFormat(AxisFormat valueAxisFormat) {
106: this.valueAxisFormat = valueAxisFormat;
107: }
108:
109: }
|