
package com.google.gwt.widgetideas.graphics.client.impl;

import com.google.gwt.widgetideas.graphics.client.Color;

/**
 * Simple storage object for an offset and color corresponding to a color stop
 * for color gradients. Only needed for IE impl.
 */
public class ColorStop {
	public double offset;
	public Color color;

	protected ColorStop(double myOffset, Color myColor) {
		offset = myOffset;
		color = myColor;
	}

	protected ColorStop cloneColorStop() {
		return new ColorStop(offset, new Color(color.toString()));
	}
}
