Package net.sf.jasperreports.components.charts

Source Code of net.sf.jasperreports.components.charts.FillChartSettings

/*
* 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.components.charts;

import java.awt.Color;

import net.sf.jasperreports.charts.type.EdgeEnum;
import net.sf.jasperreports.components.spiderchart.SpiderChartCompiler;
import net.sf.jasperreports.engine.JRChart;
import net.sf.jasperreports.engine.JRConstants;
import net.sf.jasperreports.engine.JRExpression;
import net.sf.jasperreports.engine.JRExpressionCollector;
import net.sf.jasperreports.engine.JRFont;
import net.sf.jasperreports.engine.JRHyperlinkParameter;
import net.sf.jasperreports.engine.JRRuntimeException;
import net.sf.jasperreports.engine.fill.JRFillObjectFactory;
import net.sf.jasperreports.engine.type.HyperlinkTypeEnum;


/**
* @author sanda zaharia (shertage@users.sourceforge.net)
* @version $Id: FillChartSettings.java 3939 2010-08-20 09:52:00Z teodord $
*/
public class FillChartSettings implements ChartSettings
{

  /**
   *
   */
  private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID;
 
  /**
   *
   */
  protected ChartSettings parent;

  /**
   *
   */
  public FillChartSettings(
    ChartSettings chartSettings,
    JRFillObjectFactory factory
    )
  {
    factory.put(chartSettings, this);
    parent = chartSettings;
  }

  /**
   * @see net.sf.jasperreports.engine.JRAnchor#getAnchorNameExpression()
   */
  public JRExpression getAnchorNameExpression() {
    return parent.getAnchorNameExpression();
  }

  /**
   * @see net.sf.jasperreports.engine.JRAnchor#getBookmarkLevel()
   */
  public int getBookmarkLevel() {
   
    return parent.getBookmarkLevel();
  }

  /**
   * @see java.lang.Object#clone()
   */
  public Object clone() {
   
    ChartSettings clone = null;
   
    try
    {
      clone = (ChartSettings)super.clone();
    }
    catch (CloneNotSupportedException e)
    {
      throw new JRRuntimeException(e);
    }
    return clone;
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getChartType()
   */
  public byte getChartType() {
   
    return parent.getChartType();
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getLegendBackgroundColor()
   */
  public Color getLegendBackgroundColor() {
   
    return parent.getLegendBackgroundColor();
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getLegendColor()
   */
  public Color getLegendColor() {
   
    return parent.getLegendColor();
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getLegendFont()
   */
  public JRFont getLegendFont() {
   
    return parent.getLegendFont();
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getLegendPosition()
   */
  public EdgeEnum getLegendPosition() {
   
    return parent.getLegendPosition();
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getRenderType()
   */
  public String getRenderType() {
   
    return parent.getRenderType() == null ? JRChart.RENDER_TYPE_DRAW : parent.getRenderType();
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getShowLegend()
   */
  public Boolean getShowLegend() {
   
    return parent.getShowLegend();
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getSubtitleColor()
   */
  public Color getSubtitleColor() {
   
    return parent.getSubtitleColor();
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getSubtitleExpression()
   */
  public JRExpression getSubtitleExpression() {
   
    return parent.getSubtitleExpression();
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getSubtitleFont()
   */
  public JRFont getSubtitleFont() {
   
    return parent.getSubtitleFont();
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getTitleColor()
   */
  public Color getTitleColor() {
   
    return parent.getTitleColor();
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getTitleExpression()
   */
  public JRExpression getTitleExpression() {
   
    return parent.getTitleExpression();
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getTitleFont()
   */
  public JRFont getTitleFont() {
   
    return parent.getTitleFont();
  }

  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getTitlePosition()
   */
  public EdgeEnum getTitlePosition() {
   
    return parent.getTitlePosition();
  }

  /**
   * @see net.sf.jasperreports.engine.JRHyperlink#getHyperlinkAnchorExpression()
   */
  public JRExpression getHyperlinkAnchorExpression() {
   
    return parent.getHyperlinkAnchorExpression();
  }

  /**
   * @see net.sf.jasperreports.engine.JRHyperlink#getHyperlinkPageExpression()
   */
  public JRExpression getHyperlinkPageExpression() {
   
    return parent.getHyperlinkPageExpression();
  }

  /**
   * @see net.sf.jasperreports.engine.JRHyperlink#getHyperlinkParameters()
   */
  public JRHyperlinkParameter[] getHyperlinkParameters() {
   
    return parent.getHyperlinkParameters();
  }

  /**
   * @see net.sf.jasperreports.engine.JRHyperlink#getHyperlinkReferenceExpression()
   */
  public JRExpression getHyperlinkReferenceExpression() {
   
    return parent.getHyperlinkReferenceExpression();
  }

  /**
   * @see net.sf.jasperreports.engine.JRHyperlink#getHyperlinkTarget()
   */
  public byte getHyperlinkTarget() {
   
    return parent.getHyperlinkTarget();
  }

  /**
   * @see net.sf.jasperreports.engine.JRHyperlink#getHyperlinkTooltipExpression()
   */
  public JRExpression getHyperlinkTooltipExpression() {
   
    return parent.getHyperlinkTooltipExpression();
  }

  /**
   * @deprecated Replaced by {@link #getHyperlinkTypeValue()}.
   */
  public byte getHyperlinkType() {
   
    return parent.getHyperlinkTypeValue() == null
      ? HyperlinkTypeEnum.NONE.getValue()
      : parent.getHyperlinkTypeValue().getValue();
  }

  /**
   * @see net.sf.jasperreports.engine.JRHyperlink#getHyperlinkTypeValue()
   */
  public HyperlinkTypeEnum getHyperlinkTypeValue() {
   
    return parent.getHyperlinkTypeValue();
  }

  /**
   * @see net.sf.jasperreports.engine.JRHyperlink#getLinkTarget()
   */
  public String getLinkTarget() {
   
    return parent.getLinkTarget();
  }

  /**
   * @see net.sf.jasperreports.engine.JRHyperlink#getLinkType()
   */
  public String getLinkType() {
   
    return parent.getLinkType();
  }
 
  /**
   * @see net.sf.jasperreports.components.charts.ChartSettings#getLegendColor()
   */
  public Color getBackcolor() {
   
    return parent.getBackcolor();
  }

  /**
   *
   */
  public String getCustomizerClass()
  {
    return parent.getCustomizerClass();
  }
 
  /**
   *
   */
  public void collectExpressions(JRExpressionCollector collector)
  {
    SpiderChartCompiler.collectExpressions(this, collector);
  }

}
TOP

Related Classes of net.sf.jasperreports.components.charts.FillChartSettings

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.