using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
namespace Microsoft.Research.DynamicDataDisplay.Common.Palettes
{
///
/// Represents a simple base class for a palette. Contains an abstract merhod for creation of color and method to raise changed event.
///
public abstract class PaletteBase : IPalette
{
#region IPalette Members
///
/// Gets the color by interpolation coefficient.
///
/// Interpolation coefficient, should belong to [0..1].
/// Color.
public abstract Color GetColor(double t);
protected void RaiseChanged()
{
Changed.Raise(this);
}
///
/// Occurs when palette changes.
///
public event EventHandler Changed;
#endregion
}
}