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

org.wicketstuff.googlecharts.ChartAxis Maven / Gradle / Ivy

The newest version!
/*
 * Created on Dec 11, 2007
 */
package org.wicketstuff.googlecharts;

import java.awt.Color;

/**
 * @author Daniel Spiewak
 */
public class ChartAxis implements IChartAxis
{

	private static final long serialVersionUID = 7846972840224609873L;
	private AxisAlignment alignment;
	private Color color;
	private int fontSize = -1;
	private String[] labels;
	private double[] positions;
	private Range range;
	private ChartAxisType type;

	public ChartAxis(ChartAxisType type)
	{
		this.type = type;
	}

	public AxisAlignment getAlignment()
	{
		return alignment;
	}

	public Color getColor()
	{
		return color;
	}

	public int getFontSize()
	{
		return fontSize;
	}

	public String[] getLabels()
	{
		return labels;
	}

	public double[] getPositions()
	{
		return positions;
	}

	public Range getRange()
	{
		return range;
	}

	public ChartAxisType getType()
	{
		return type;
	}

	public void setAlignment(AxisAlignment alignment)
	{
		this.alignment = alignment;
	}

	public void setColor(Color color)
	{
		this.color = color;
	}

	public void setFontSize(int fontSize)
	{
		this.fontSize = fontSize;
	}

	public void setLabels(String[] labels)
	{
		this.labels = labels;
	}

	public void setPositions(double[] positions)
	{
		this.positions = positions;
	}

	public void setRange(Range range)
	{
		this.range = range;
	}

	public void setType(ChartAxisType type)
	{
		this.type = type;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy