/*******************************************************************************
 * Copyright (c) 2006 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/

package org.eclipse.birt.chart.script.internal.series;

import org.eclipse.birt.chart.model.Chart;
import org.eclipse.birt.chart.model.data.SeriesDefinition;
import org.eclipse.birt.chart.model.type.GanttSeries;
import org.eclipse.birt.chart.script.api.series.IGantt;
import org.eclipse.birt.chart.script.api.series.data.ISeriesData;
import org.eclipse.birt.chart.script.internal.component.ValueSeriesImpl;
import org.eclipse.birt.chart.script.internal.series.data.GanttDataImpl;

/**
 * 
 */

public class GanttImpl extends ValueSeriesImpl implements IGantt
{

	public GanttImpl( SeriesDefinition sd, Chart cm )
	{
		super( sd, cm );
		assert series instanceof GanttSeries;
	}

	public ISeriesData getDataExpr( )
	{
		return new GanttDataImpl( sd );
	}

}
