All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.swtchart.ISeriesSet Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2008, 2020 SWTChart project.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 * 
 * Contributors:
 * yoshitaka - initial API and implementation
 *******************************************************************************/
package org.eclipse.swtchart;

import org.eclipse.swtchart.ISeries.SeriesType;

/**
 * A series container.
 */
public interface ISeriesSet {

	/**
	 * Creates the series. If series for given id already exists, the existing
	 * series will be overwritten.
	 * 
	 * @param type
	 *            the series type
	 * @param id
	 *            the id for series
	 * @return the series
	 */
	ISeries createSeries(SeriesType type, String id);

	/**
	 * Gets the series for given id.
	 * 
	 * @param id
	 *            the id for series
	 * @return the series, or null if series doesn't exist for the given id.
	 */
	ISeries getSeries(String id);

	/**
	 * Gets the array of series
	 * 
	 * @return the array of series
	 */
	ISeries[] getSeries();

	/**
	 * Deletes the series for given id.
	 * 
	 * @param id
	 *            the series id
	 * @throws IllegalArgumentException
	 *             if there is no series for the given id.
	 */
	void deleteSeries(String id);

	/**
	 * Brings the series for given id forward.
	 * 
	 * @param id
	 *            the series id
	 */
	void bringForward(String id);

	/**
	 * Brings the series for given id to front.
	 * 
	 * @param id
	 *            the series id
	 */
	void bringToFront(String id);

	/**
	 * Sends the series for given id backward.
	 * 
	 * @param id
	 *            the series id
	 */
	void sendBackward(String id);

	/**
	 * Sends the series for given id to back.
	 * 
	 * @param id
	 *            the series id
	 */
	void sendToBack(String id);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy