001: /*
002: * ============================================================================
003: * GNU Lesser General Public License
004: * ============================================================================
005: *
006: * JasperReports - Free Java report-generating library.
007: * Copyright (C) 2001-2006 JasperSoft Corporation http://www.jaspersoft.com
008: *
009: * This library is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU Lesser General Public
011: * License as published by the Free Software Foundation; either
012: * version 2.1 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: * Lesser General Public License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library; if not, write to the Free Software
021: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
022: *
023: * JasperSoft Corporation
024: * 303 Second Street, Suite 450 North
025: * San Francisco, CA 94107
026: * http://www.jaspersoft.com
027: */
028: package net.sf.jasperreports.charts.design;
029:
030: import java.awt.Color;
031:
032: import net.sf.jasperreports.charts.base.JRBaseHighLowPlot;
033: import net.sf.jasperreports.charts.util.JRAxisFormat;
034: import net.sf.jasperreports.engine.JRChart;
035: import net.sf.jasperreports.engine.JRChartPlot;
036: import net.sf.jasperreports.engine.JRConstants;
037: import net.sf.jasperreports.engine.JRExpression;
038: import net.sf.jasperreports.engine.JRFont;
039:
040: /**
041: * @author Ionut Nedelcu (ionutned@users.sourceforge.net)
042: * @version $Id: JRDesignHighLowPlot.java 1577 2007-02-09 11:25:48Z teodord $
043: */
044: public class JRDesignHighLowPlot extends JRBaseHighLowPlot {
045:
046: /**
047: *
048: */
049: private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID;
050:
051: /**
052: *
053: */
054: public JRDesignHighLowPlot(JRChartPlot highLowPlot, JRChart chart) {
055: super (highLowPlot, chart);
056: }
057:
058: /**
059: *
060: */
061: public void setTimeAxisLabelExpression(
062: JRExpression timeAxisLabelExpression) {
063: this .timeAxisLabelExpression = timeAxisLabelExpression;
064:
065: }
066:
067: /**
068: *
069: */
070: public void setTimeAxisLabelFont(JRFont timeAxisLabelFont) {
071: this .timeAxisLabelFont = timeAxisLabelFont;
072: }
073:
074: /**
075: *
076: */
077: public void setTimeAxisLabelColor(Color timeAxisLabelColor) {
078: this .timeAxisLabelColor = timeAxisLabelColor;
079: }
080:
081: /**
082: *
083: */
084: public void setTimeAxisTickLabelFont(JRFont timeAxisTickLabelFont) {
085: this .timeAxisTickLabelFont = timeAxisTickLabelFont;
086: }
087:
088: /**
089: *
090: */
091: public void setTimeAxisTickLabelColor(Color timeAxisTickLabelColor) {
092: this .timeAxisTickLabelColor = timeAxisTickLabelColor;
093: }
094:
095: /**
096: *
097: */
098: public void setTimeAxisTickLabelMask(String timeAxisTickLabelMask) {
099: this .timeAxisTickLabelMask = timeAxisTickLabelMask;
100: }
101:
102: /**
103: *
104: */
105: public void setTimeAxisLineColor(Color timeAxisLineColor) {
106: this .timeAxisLineColor = timeAxisLineColor;
107: }
108:
109: /**
110: *
111: */
112: public void setValueAxisLabelExpression(
113: JRExpression valueAxisLabelExpression) {
114: this .valueAxisLabelExpression = valueAxisLabelExpression;
115: }
116:
117: /**
118: *
119: */
120: public void setValueAxisLabelFont(JRFont valueAxisLabelFont) {
121: this .valueAxisLabelFont = valueAxisLabelFont;
122: }
123:
124: /**
125: *
126: */
127: public void setValueAxisLabelColor(Color valueAxisLabelColor) {
128: this .valueAxisLabelColor = valueAxisLabelColor;
129: }
130:
131: /**
132: *
133: */
134: public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont) {
135: this .valueAxisTickLabelFont = valueAxisTickLabelFont;
136: }
137:
138: /**
139: *
140: */
141: public void setValueAxisTickLabelColor(Color valueAxisTickLabelColor) {
142: this .valueAxisTickLabelColor = valueAxisTickLabelColor;
143: }
144:
145: /**
146: *
147: */
148: public void setValueAxisTickLabelMask(String valueAxisTickLabelMask) {
149: this .valueAxisTickLabelMask = valueAxisTickLabelMask;
150: }
151:
152: /**
153: *
154: */
155: public void setValueAxisLineColor(Color valueAxisLineColor) {
156: this .valueAxisLineColor = valueAxisLineColor;
157: }
158:
159: /**
160: *
161: */
162: public void setTimeAxisFormat(JRAxisFormat axisFormat) {
163: setTimeAxisLabelFont(axisFormat.getLabelFont());
164: setTimeAxisLabelColor(axisFormat.getLabelColor());
165: setTimeAxisTickLabelFont(axisFormat.getTickLabelFont());
166: setTimeAxisTickLabelColor(axisFormat.getTickLabelColor());
167: setTimeAxisTickLabelMask(axisFormat.getTickLabelMask());
168: setTimeAxisLineColor(axisFormat.getLineColor());
169: }
170:
171: /**
172: *
173: */
174: public void setValueAxisFormat(JRAxisFormat axisFormat) {
175: setValueAxisLabelFont(axisFormat.getLabelFont());
176: setValueAxisLabelColor(axisFormat.getLabelColor());
177: setValueAxisTickLabelFont(axisFormat.getTickLabelFont());
178: setValueAxisTickLabelColor(axisFormat.getTickLabelColor());
179: setValueAxisTickLabelMask(axisFormat.getTickLabelMask());
180: setValueAxisLineColor(axisFormat.getLineColor());
181: }
182: }
|