blob: 641007c7a04ead0d7d308c5dd1d41afcfe64de87 [file]
/*
* Created on Dec 11, 2007
*/
package com.codecommit.wicket;
import java.awt.Color;
import java.io.Serializable;
/**
* @author Daniel Spiewak
*/
public class ChartAxis implements IChartAxis, Serializable {
private static final long serialVersionUID = 1L;
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;
}
}