public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                SymbolShapeStyleGroupStyle s = null != o ? (SymbolShapeStyleGroupStyle)o : new SymbolShapeStyleGroupStyle();

                s._isStepEnabled = info.GetBoolean("StepEnabled");
                return(s);
            }
        public void TransferFrom(IPlotGroupStyle fromb)
        {
            SymbolShapeStyleGroupStyle from = (SymbolShapeStyleGroupStyle)fromb;

            this._isInitialized = from._isInitialized;
            this._shapeAndStyle = new ShapeAndStyle(from._shapeAndStyle.Shape, from._shapeAndStyle.Style);
        }
        public static void PrepareStyle(
            IPlotGroupStyleCollection externalGroups,
            IPlotGroupStyleCollection localGroups,
            Getter getter)
        {
            if (!externalGroups.ContainsType(typeof(SymbolShapeStyleGroupStyle)) &&
                null != localGroups &&
                !localGroups.ContainsType(typeof(SymbolShapeStyleGroupStyle)))
            {
                localGroups.Add(new SymbolShapeStyleGroupStyle());
            }

            SymbolShapeStyleGroupStyle grpStyle = null;

            if (externalGroups.ContainsType(typeof(SymbolShapeStyleGroupStyle)))
            {
                grpStyle = (SymbolShapeStyleGroupStyle)externalGroups.GetPlotGroupStyle(typeof(SymbolShapeStyleGroupStyle));
            }
            else if (localGroups != null)
            {
                grpStyle = (SymbolShapeStyleGroupStyle)localGroups.GetPlotGroupStyle(typeof(SymbolShapeStyleGroupStyle));
            }

            if (grpStyle != null && getter != null && !grpStyle.IsInitialized)
            {
                grpStyle.Initialize(getter());
            }
        }
 public static void AddExternalGroupStyle(IPlotGroupStyleCollection externalGroups)
 {
     if (PlotGroupStyle.ShouldAddExternalGroupStyle(externalGroups, typeof(SymbolShapeStyleGroupStyle)))
     {
         SymbolShapeStyleGroupStyle gstyle = new SymbolShapeStyleGroupStyle();
         gstyle.IsStepEnabled = true;
         externalGroups.Add(gstyle);
     }
 }
        public static void ApplyStyle(
            IPlotGroupStyleCollection externalGroups,
            IPlotGroupStyleCollection localGroups,
            Setter setter)
        {
            SymbolShapeStyleGroupStyle grpStyle = null;
            IPlotGroupStyleCollection  grpColl  = null;

            if (externalGroups.ContainsType(typeof(SymbolShapeStyleGroupStyle)))
            {
                grpColl = externalGroups;
            }
            else if (localGroups != null && localGroups.ContainsType(typeof(SymbolShapeStyleGroupStyle)))
            {
                grpColl = localGroups;
            }

            if (null != grpColl)
            {
                grpStyle = (SymbolShapeStyleGroupStyle)grpColl.GetPlotGroupStyle(typeof(SymbolShapeStyleGroupStyle));
                grpColl.OnBeforeApplication(typeof(SymbolShapeStyleGroupStyle));
                setter(grpStyle.ShapeAndStyle);
            }
        }
 public SymbolShapeStyleGroupStyle(SymbolShapeStyleGroupStyle from)
 {
     this._isInitialized = from._isInitialized;
     this._shapeAndStyle = new ShapeAndStyle(from._shapeAndStyle.Shape, from._shapeAndStyle.Style);
 }
            public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                SymbolShapeStyleGroupStyle s = (SymbolShapeStyleGroupStyle)obj;

                info.AddValue("StepEnabled", s._isStepEnabled);
            }