Index: src/Common/DelftTools.Controls.Swf/Charting/Series/PolygonChartSeries.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/Common/DelftTools.Controls.Swf/Charting/Series/PolygonChartSeries.cs (.../PolygonChartSeries.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/Common/DelftTools.Controls.Swf/Charting/Series/PolygonChartSeries.cs (.../PolygonChartSeries.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -13,19 +13,22 @@ public PolygonChartSeries(IChartSeries chartSeries) : this() { CopySettings(chartSeries); - ChartStyleHelper.CopySeriesStyles(chartSeries,this); + ChartStyleHelper.CopySeriesStyles(chartSeries, this); Tag = chartSeries.Tag; } - public PolygonChartSeries(): base(new PolygonSeries()) + public PolygonChartSeries() : base(new PolygonSeries()) { - polygonSeries = (PolygonSeries)series; + polygonSeries = (PolygonSeries) series; DefaultNullValue = double.NaN; } public override Color Color { - get { return series.Color; } + get + { + return series.Color; + } set { series.Color = value; @@ -36,87 +39,141 @@ } } - # region Hatch - - public HatchStyle HatchStyle + public ISeriesValueList XValues { - get { return polygonSeries.bBrush.Style; } - set { polygonSeries.bBrush.Style = value; } + get + { + return new SeriesValueList(polygonSeries.XValues); + } } - public Color HatchColor + public ISeriesValueList YValues { - get { return polygonSeries.bBrush.ForegroundColor; } - set { polygonSeries.bBrush.ForegroundColor = value; } + get + { + return new SeriesValueList(polygonSeries.YValues); + } } - public bool UseHatch + public Color LineColor { - get { return !polygonSeries.bBrush.Solid; } - set { polygonSeries.bBrush.Solid = !value; } + get + { + return polygonSeries.Pen.Color; + } + set + { + polygonSeries.Pen.Color = value; + } } - /// - /// Percentage transparancy. This should be between 0 and 100. - /// - public int Transparency + public int LineWidth { - get { return polygonSeries.Pen.Transparency; } + get + { + return polygonSeries.Pen.Width; + } set { - if (value < 0 || value > 100) - { - throw new ArgumentOutOfRangeException("value",Resources.PolygonChartSeries_Transparency_Transparancy_should_be_between_0_and_100); - } - polygonSeries.Pen.Transparency = value; - polygonSeries.bBrush.Transparency = value; + polygonSeries.Pen.Width = MathUtils.ClipValue(value, MinimumAllowedSize, MaximumAllowedSize); } } - # endregion - - public ISeriesValueList XValues + public bool LineVisible { - get { return new SeriesValueList(polygonSeries.XValues); } + get + { + return polygonSeries.Pen.Visible; + } + set + { + polygonSeries.Pen.Visible = value; + polygonSeries.Repaint(); + } } - public ISeriesValueList YValues + public DashStyle LineStyle { - get { return new SeriesValueList(polygonSeries.YValues); } + get + { + return polygonSeries.Pen.Style; + } + set + { + polygonSeries.Pen.Style = value; + } } - public Color LineColor + public bool AutoClose { - get { return polygonSeries.Pen.Color; } - set { polygonSeries.Pen.Color = value; } + get + { + return polygonSeries.AutoClose; + } + set + { + polygonSeries.AutoClose = value; + } } - public int LineWidth + # region Hatch + + public HatchStyle HatchStyle { - get { return polygonSeries.Pen.Width; } - set { polygonSeries.Pen.Width = MathUtils.ClipValue(value, MinimumAllowedSize, MaximumAllowedSize); } + get + { + return polygonSeries.bBrush.Style; + } + set + { + polygonSeries.bBrush.Style = value; + } } - public bool LineVisible + public Color HatchColor { - get { return polygonSeries.Pen.Visible; } + get + { + return polygonSeries.bBrush.ForegroundColor; + } set { - polygonSeries.Pen.Visible = value; - polygonSeries.Repaint(); + polygonSeries.bBrush.ForegroundColor = value; } } - public DashStyle LineStyle + public bool UseHatch { - get { return polygonSeries.Pen.Style; } - set { polygonSeries.Pen.Style = value; } + get + { + return !polygonSeries.bBrush.Solid; + } + set + { + polygonSeries.bBrush.Solid = !value; + } } - public bool AutoClose + /// + /// Percentage transparancy. This should be between 0 and 100. + /// + public int Transparency { - get { return polygonSeries.AutoClose; } - set { polygonSeries.AutoClose = value; } + get + { + return polygonSeries.Pen.Transparency; + } + set + { + if (value < 0 || value > 100) + { + throw new ArgumentOutOfRangeException("value", Resources.PolygonChartSeries_Transparency_Transparancy_should_be_between_0_and_100); + } + polygonSeries.Pen.Transparency = value; + polygonSeries.bBrush.Transparency = value; + } } + + # endregion } } \ No newline at end of file