org.wicketstuff.googlecharts.LinearStripesFill Maven / Gradle / Ivy
The newest version!
/*
* Created on Dec 11, 2007
*/
package org.wicketstuff.googlecharts;
import java.awt.Color;
/**
* @author Daniel Spiewak
*/
public class LinearStripesFill implements ILinearStripesFill
{
private static final long serialVersionUID = 4864424675217937390L;
private int angle = -1;
private Color[] colors;
private double[] widths;
public LinearStripesFill(int angle, Color[] colors, double[] widths)
{
if (colors.length != widths.length)
{
throw new IllegalArgumentException("Must be same number of colors as widths");
}
this.angle = angle;
this.colors = colors;
this.widths = widths;
}
public int getAngle()
{
return angle;
}
public Color[] getColors()
{
return colors;
}
public double[] getWidths()
{
return widths;
}
public void setAngle(int angle)
{
this.angle = angle;
}
public void setColors(Color[] colors)
{
this.colors = colors;
}
public void setWidths(double[] widths)
{
this.widths = widths;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy