/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2009 Jaspersoft Corporation. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* JasperReports is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* JasperReports is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with JasperReports. If not, see <http://www.gnu.org/licenses/>.
*/
package net.sf.jasperreports.charts.fill;
import java.awt.Color;
import net.sf.jasperreports.charts.JRLinePlot;
import net.sf.jasperreports.engine.JRExpression;
import net.sf.jasperreports.engine.JRFont;
import net.sf.jasperreports.engine.base.JRBaseFont;
import net.sf.jasperreports.engine.fill.JRFillChartPlot;
import net.sf.jasperreports.engine.fill.JRFillObjectFactory;
import net.sf.jasperreports.engine.util.JRStyleResolver;
/**
* @author Flavius Sana (flavius_sana@users.sourceforge.net)
* @version $Id: JRFillLinePlot.java 3938 2010-08-19 14:59:36Z teodord $
*/
public class JRFillLinePlot extends JRFillChartPlot implements JRLinePlot
{
/**
*
*/
protected JRFont categoryAxisLabelFont;
protected Color categoryAxisLabelColor;
protected JRFont categoryAxisTickLabelFont;
protected Color categoryAxisTickLabelColor;
protected Color categoryAxisLineColor;
protected JRFont valueAxisLabelFont;
protected Color valueAxisLabelColor;
protected JRFont valueAxisTickLabelFont;
protected Color valueAxisTickLabelColor;
protected Color valueAxisLineColor;
/**
*
*/
public JRFillLinePlot( JRLinePlot plot, JRFillObjectFactory factory )
{
super( plot, factory );
categoryAxisLabelFont = new JRBaseFont(plot.getChart(), plot.getCategoryAxisLabelFont());
categoryAxisLabelColor = plot.getOwnCategoryAxisLabelColor();
categoryAxisTickLabelFont = new JRBaseFont(plot.getChart(), plot.getCategoryAxisTickLabelFont());
categoryAxisTickLabelColor = plot.getOwnCategoryAxisTickLabelColor();
categoryAxisLineColor = plot.getOwnCategoryAxisLineColor();
valueAxisLabelFont = new JRBaseFont(plot.getChart(), plot.getValueAxisLabelFont());
valueAxisLabelColor = plot.getOwnValueAxisLabelColor();
valueAxisTickLabelFont = new JRBaseFont(plot.getChart(), plot.getValueAxisTickLabelFont());
valueAxisTickLabelColor = plot.getOwnValueAxisTickLabelColor();
valueAxisLineColor = plot.getOwnValueAxisLineColor();
}
/**
*
*/
public JRExpression getCategoryAxisLabelExpression()
{
return ((JRLinePlot)parent).getCategoryAxisLabelExpression();
}
/**
*
*/
public JRFont getCategoryAxisLabelFont()
{
return categoryAxisLabelFont;
}
/**
*
*/
public Color getCategoryAxisLabelColor()
{
return JRStyleResolver.getCategoryAxisLabelColor(this, this);
}
/**
*
*/
public Color getOwnCategoryAxisLabelColor()
{
return categoryAxisLabelColor;
}
/**
*
*/
public void setCategoryAxisLabelColor(Color color)
{
}
/**
*
*/
public JRFont getCategoryAxisTickLabelFont()
{
return categoryAxisTickLabelFont;
}
/**
*
*/
public Color getCategoryAxisTickLabelColor()
{
return JRStyleResolver.getCategoryAxisTickLabelColor(this, this);
}
/**
*
*/
public Color getOwnCategoryAxisTickLabelColor()
{
return categoryAxisTickLabelColor;
}
/**
*
*/
public void setCategoryAxisTickLabelColor(Color color)
{
}
/**
*
*/
public String getCategoryAxisTickLabelMask()
{
return ((JRLinePlot)parent).getCategoryAxisTickLabelMask();
}
/**
*
*/
public Boolean getCategoryAxisVerticalTickLabels()
{
return ((JRLinePlot)parent).getCategoryAxisVerticalTickLabels();
}
/**
*
*/
public Double getCategoryAxisTickLabelRotation()
{
return ((JRLinePlot)parent).getCategoryAxisTickLabelRotation();
}
/**
*
*/
public void setCategoryAxisTickLabelRotation(Double labelRotation)
{
}
/**
*
*/
public Color getCategoryAxisLineColor()
{
return JRStyleResolver.getCategoryAxisLineColor(this, this);
}
/**
*
*/
public Color getOwnCategoryAxisLineColor()
{
return categoryAxisLineColor;
}
/**
*
*/
public void setCategoryAxisLineColor(Color color)
{
}
/**
*
*/
public JRExpression getValueAxisLabelExpression()
{
return ((JRLinePlot)parent).getValueAxisLabelExpression();
}
/**
*
*/
public JRExpression getDomainAxisMinValueExpression()
{
return ((JRLinePlot)parent).getDomainAxisMinValueExpression();
}
/**
*
*/
public JRExpression getDomainAxisMaxValueExpression()
{
return ((JRLinePlot)parent).getDomainAxisMaxValueExpression();
}
/**
*
*/
public JRExpression getRangeAxisMinValueExpression()
{
return ((JRLinePlot)parent).getRangeAxisMinValueExpression();
}
/**
*
*/
public JRExpression getRangeAxisMaxValueExpression()
{
return ((JRLinePlot)parent).getRangeAxisMaxValueExpression();
}
/**
*
*/
public JRFont getValueAxisLabelFont()
{
return valueAxisLabelFont;
}
/**
*
*/
public Color getValueAxisLabelColor()
{
return JRStyleResolver.getValueAxisLabelColor(this, this);
}
/**
*
*/
public Color getOwnValueAxisLabelColor()
{
return valueAxisLabelColor;
}
/**
*
*/
public void setValueAxisLabelColor(Color color)
{
}
/**
*
*/
public JRFont getValueAxisTickLabelFont()
{
return valueAxisTickLabelFont;
}
/**
*
*/
public Color getValueAxisTickLabelColor()
{
return JRStyleResolver.getValueAxisTickLabelColor(this, this);
}
/**
*
*/
public Color getOwnValueAxisTickLabelColor()
{
return valueAxisTickLabelColor;
}
/**
*
*/
public void setValueAxisTickLabelColor(Color color)
{
}
/**
*
*/
public String getValueAxisTickLabelMask()
{
return ((JRLinePlot)parent).getValueAxisTickLabelMask();
}
/**
*
*/
public Boolean getValueAxisVerticalTickLabels()
{
return ((JRLinePlot)parent).getValueAxisVerticalTickLabels();
}
/**
*
*/
public Color getValueAxisLineColor()
{
return JRStyleResolver.getValueAxisLineColor(this, this);
}
/**
*
*/
public Color getOwnValueAxisLineColor()
{
return valueAxisLineColor;
}
/**
*
*/
public void setValueAxisLineColor(Color color)
{
}
/**
* @deprecated Replaced by {@link #getShowShapes()}
*/
public boolean isShowShapes(){
return ((JRLinePlot)parent).isShowShapes();
}
/**
*
*/
public Boolean getShowShapes(){
return ((JRLinePlot)parent).getShowShapes();
}
/**
* @deprecated Replaced by {@link #setShowShapes(Boolean)}
*/
public void setShowShapes( boolean value ){
}
/**
*
*/
public void setShowShapes( Boolean value ){
}
/**
* @deprecated Replaced by {@link #getShowLines()}
*/
public boolean isShowLines(){
return ((JRLinePlot)parent).isShowLines();
}
/**
*
*/
public Boolean getShowLines(){
return ((JRLinePlot)parent).getShowLines();
}
/**
* @deprecated Replaced by {@link #setShowLines(Boolean)}
*/
public void setShowLines( boolean value ){
}
/**
*
*/
public void setShowLines( Boolean value ){
}
}