Esempio n. 1
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                DensityImageLegend s = null != o ? (DensityImageLegend)o : new DensityImageLegend();

                info.GetBaseValueEmbedded(s, typeof(DensityImageLegend).BaseType, parent);

                s._plotItemProxy = (Main.RelDocNodeProxy)info.GetValue("PlotItem", s);
                bool isOrientationVertical = info.GetBoolean("IsOrientationVertical");
                bool isScaleReversed       = info.GetBoolean("IsScaleReversed");

                var cachedScale      = (NumericalScale)info.GetValue("Scale", s); // TODO replace next 3 lines with serialization / deserialization of ScaleWithTicks
                var scaleTickSpacing = (TickSpacing)info.GetValue("TickSpacing", s);

                scaleTickSpacing.FinalProcessScaleBoundaries(cachedScale.OrgAsVariant, cachedScale.EndAsVariant, cachedScale);

                s._axisStyles = (AxisStyleCollection)info.GetValue("AxisStyles", s);
                s._axisStyles.ParentObject = s;

                s._cachedArea = new DensityLegendArea(s.Size, isOrientationVertical, isScaleReversed, cachedScale, scaleTickSpacing)
                {
                    ParentObject = s
                };
                s._axisStyles.UpdateCoordinateSystem(s._cachedArea.CoordinateSystem);

                return(s);
            }
Esempio n. 2
0
 public DensityImageLegend(DensityImageLegend from)
     : base(from) // all is done here, since CopyFrom is virtual!
 {
 }
Esempio n. 3
0
		public DensityImageLegend(DensityImageLegend from)
			: base(from)  // all is done here, since CopyFrom is virtual!
		{
		}