using System.Drawing;
using DevComponents.DotNetBar.Metro.ColorTables;
using DevComponents.DotNetBar.Metro.Rendering;
using DevComponents.DotNetBar.Rendering;
namespace DevComponents.DotNetBar.Charts.Style
{
///
/// Create the Metro Visual Style for ChartControl.
///
public class MetroStyleFactory : VisualStyleFactory
{
private MetroPartColors _MetroPartColors;
///
/// Initializes a new instance of the MetroStyleFactory class.
///
public MetroStyleFactory()
{
_MetroPartColors = MetroRender.GetColorTable().MetroPartColors;
}
///
/// Initializes a new instance of the MetroStyleFactory class.
///
/// Metro Part Colors to Initialize Style with.
public MetroStyleFactory(MetroPartColors metroPartColors)
{
_MetroPartColors = metroPartColors;
if (metroPartColors == null)
_MetroPartColors = MetroRender.GetColorTable().MetroPartColors;
}
///
/// Create the DefaultVisualStyle for ChartControl.
///
/// Color-Factory used to generate colors.
/// New instance of DefaultVisualStyles class.s
public override DefaultVisualStyles CreateStyle(ColorFactory factory)
{
DefaultVisualStyles visualStyle = new DefaultVisualStyles();
// TODO: Add int code
return (visualStyle);
}
}
}