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); }
public DensityImageLegend(DensityImageLegend from) : base(from) // all is done here, since CopyFrom is virtual! { }
public DensityImageLegend(DensityImageLegend from) : base(from) // all is done here, since CopyFrom is virtual! { }