private static void ProvideLinkedScalesWithLinkedLayerIndex(XYPlotLayer s, Main.RelDocNodeProxy linkedLayer, Altaxo.Serialization.Xml.IXmlDeserializationInfo info) { if (null != linkedLayer) { ProvideLinkedScalesWithLinkedLayerIndex(s, linkedLayer.DocumentPath, info); } }
/// <summary> /// Creates a layer with position <paramref name="position"/> and size <paramref name="size"/>. /// </summary> /// <param name="position">The position of the layer on the printable area in points (1/72 inch).</param> /// <param name="size">The size of the layer in points (1/72 inch).</param> /// <param name="coordinateSystem">The coordinate system to use for the layer.</param> public XYPlotLayer(PointF position, SizeF size, G2DCoordinateSystem coordinateSystem) { this._changeEventSuppressor = new Altaxo.Main.EventSuppressor(EhChangeEventResumed); this.Location = new XYPlotLayerPositionAndSize(); this.CoordinateSystem = coordinateSystem; this.Size = size; this.Position = position; this.AxisStyles = new AxisStyleCollection(); this.LinkedScales = new LinkedScaleCollection(); this.GridPlanes = new GridPlaneCollection(); this.GridPlanes.Add( new GridPlane(CSPlaneID.Front)); this.GraphObjects = new GraphicCollection(); this.Legends = new GraphicCollection(); CalculateMatrix(); LinkedLayerLink = new Main.RelDocNodeProxy(null, this); PlotItems = new PlotItemCollection(this); }
/// <summary> /// Only intended to use by XYPlotLayerCollection! Sets the parent layer collection for this layer. /// </summary> /// <param name="lc">The layer collection this layer belongs to.</param> /// <param name="number">The layer number assigned to this layer.</param> protected internal void SetParentAndNumber(XYPlotLayerCollection lc, int number) { _parent = lc; _layerNumber = number; if (_parent == null) _linkedLayer = null; }