Index: Ringtoets/Revetment/src/Ringtoets.Revetment.Forms/WaveConditionsChartDataFactory.cs =================================================================== diff -u -r056401642a9c557f5264d490154b71b14454721e -r58b9c20cc8547f70a680045776e917b33422cd95 --- Ringtoets/Revetment/src/Ringtoets.Revetment.Forms/WaveConditionsChartDataFactory.cs (.../WaveConditionsChartDataFactory.cs) (revision 056401642a9c557f5264d490154b71b14454721e) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.Forms/WaveConditionsChartDataFactory.cs (.../WaveConditionsChartDataFactory.cs) (revision 58b9c20cc8547f70a680045776e917b33422cd95) @@ -19,9 +19,13 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System.Drawing; +using System.Drawing.Drawing2D; using Core.Components.Charting.Data; +using Core.Components.Charting.Styles; using Ringtoets.Common.Forms.Views; using Ringtoets.Revetment.Data; +using Ringtoets.Revetment.Forms.Properties; using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; namespace Ringtoets.Revetment.Forms @@ -33,6 +37,42 @@ internal static class WaveConditionsChartDataFactory { /// + /// Create with default styling for lower boundary revetment. + /// + /// The created . + public static ChartLineData CreateLowerRevetmentBoundaryChartData() + { + return new ChartLineData(Resources.WaveConditionsChartDataFactory_LowerBoundaryRevetment_DisplayName) + { + Style = GetRevetmentBoundaryStyle() + }; + } + + /// + /// Create with default styling for upper boundary revetment. + /// + /// The created . + public static ChartLineData CreateUpperRevetmentBoundaryChartData() + { + return new ChartLineData(Resources.WaveConditionsChartDataFactory_UpperBoundaryRevetment_DisplayName) + { + Style = GetRevetmentBoundaryStyle() + }; + } + + /// + /// Create with default styling for revetment. + /// + /// The created . + public static ChartLineData CreateRevetmentChartData() + { + return new ChartLineData(Resources.WaveConditionsChartDataFactory_Revetment_DisplayName) + { + Style = GetRevetmentBoundaryStyle() + }; + } + + /// /// Updates the name of based on . /// /// The to update the name for. @@ -52,5 +92,10 @@ RingtoetsCommonFormsResources.Foreshore_DisplayName) : RingtoetsCommonFormsResources.Foreshore_DisplayName; } + + private static ChartLineStyle GetRevetmentBoundaryStyle() + { + return new ChartLineStyle(Color.Gray, 2, DashStyle.Solid); + } } } \ No newline at end of file