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

marvin.statistic.MarvinBarChartEntry Maven / Gradle / Ivy

The newest version!
/**
Marvin Project <2007-2013>
http://www.marvinproject.org

License information:
http://marvinproject.sourceforge.net/en/license.html

Discussion group:
https://groups.google.com/forum/#!forum/marvin-project
*/

package marvin.statistic;

import java.awt.Color;

/**
 * Bar Chart entry.
 * @version 02/13/08
 * @author Gabriel Ambrosio Archanjo
 */
public class MarvinBarChartEntry
{
	protected String name;
	protected double value;
	protected Color color;

	public MarvinBarChartEntry(){
		this("",0,Color.black);
	}

	public MarvinBarChartEntry(String name, double value){
		this(name, value, Color.black);
	}

	public MarvinBarChartEntry(String name, double value, Color color){
		this.name = name;
		this.value = value;
		this.color = color;
	}

	public String getName(){
		return name;
	}

	public double getValue(){
		return value;
	}

	public Color getColor(){
		return color;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy