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: * HighLowPlot.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 HighLowPlot extends Plot {
040:
041: private boolean showCloseTicks = true;
042: private boolean showOpenTicks = true;
043:
044: private String timeAxisLabelExpression = "";
045: private String valueAxisLabelExpression = "";
046:
047: private AxisFormat timeAxisFormat = new AxisFormat();
048: private AxisFormat valueAxisFormat = new AxisFormat();
049:
050: /** Creates a new instance of PiePlot */
051: public HighLowPlot() {
052: }
053:
054: public String getTimeAxisLabelExpression() {
055: return timeAxisLabelExpression;
056: }
057:
058: public void setTimeAxisLabelExpression(
059: String timeAxisLabelExpression) {
060: this .timeAxisLabelExpression = timeAxisLabelExpression;
061: }
062:
063: public String getValueAxisLabelExpression() {
064: return valueAxisLabelExpression;
065: }
066:
067: public void setValueAxisLabelExpression(
068: String valueAxisLabelExpression) {
069: this .valueAxisLabelExpression = valueAxisLabelExpression;
070: }
071:
072: public boolean isShowCloseTicks() {
073: return showCloseTicks;
074: }
075:
076: public void setShowCloseTicks(boolean showCloseTicks) {
077: this .showCloseTicks = showCloseTicks;
078: }
079:
080: public boolean isShowOpenTicks() {
081: return showOpenTicks;
082: }
083:
084: public void setShowOpenTicks(boolean showOpenTicks) {
085: this .showOpenTicks = showOpenTicks;
086: }
087:
088: public Plot cloneMe() {
089: HighLowPlot obj = new HighLowPlot();
090: copyBasePlot(obj);
091: obj.setShowCloseTicks(this .isShowCloseTicks());
092: obj.setShowOpenTicks(this .isShowOpenTicks());
093: obj.setTimeAxisLabelExpression(this
094: .getTimeAxisLabelExpression());
095: obj.setValueAxisLabelExpression(this
096: .getValueAxisLabelExpression());
097:
098: obj.setTimeAxisFormat(getTimeAxisFormat().cloneMe());
099: obj.setValueAxisFormat(getValueAxisFormat().cloneMe());
100:
101: return obj;
102: }
103:
104: public AxisFormat getTimeAxisFormat() {
105: return timeAxisFormat;
106: }
107:
108: public void setTimeAxisFormat(AxisFormat timeAxisFormat) {
109: this .timeAxisFormat = timeAxisFormat;
110: }
111:
112: public AxisFormat getValueAxisFormat() {
113: return valueAxisFormat;
114: }
115:
116: public void setValueAxisFormat(AxisFormat valueAxisFormat) {
117: this.valueAxisFormat = valueAxisFormat;
118: }
119: }
|