package net.sf.jasperreports.charts.fill;

import net.sf.jasperreports.charts.JRChartAxis;
import net.sf.jasperreports.engine.JRChart;
import net.sf.jasperreports.engine.JRVisitable;
import net.sf.jasperreports.engine.fill.JRFillChart;
import net.sf.jasperreports.engine.fill.JRFillObjectFactory;

public class JRFillChartAxis implements JRChartAxis {
  protected JRChartAxis parent;
  
  protected JRFillChart fillChart = null;
  
  private static final long serialVersionUID = 10200L;
  
  public JRFillChartAxis(JRChartAxis axis, JRFillObjectFactory factory) {
    factory.put(axis, this);
    this.parent = axis;
    this.fillChart = (JRFillChart)factory.getVisitResult((JRVisitable)axis.getChart());
  }
  
  public JRFillChart getFillChart() {
    return this.fillChart;
  }
  
  public JRChart getChart() {
    return this.parent.getChart();
  }
  
  public byte getPosition() {
    return this.parent.getPosition();
  }
  
  public Object clone(JRChart parentChart) {
    return null;
  }
}
