/// <summary>
 /// Copies the member variables from another coordinate system.
 /// </summary>
 /// <param name="from">The coordinate system to copy from.</param>
 public virtual void CopyFrom(G2DCoordinateSystem from)
 {
   this._layerWidth = from._layerWidth;
   this._layerHeight = from._layerHeight;
   this._axisStyleInformation.Clear();
   
 }
Example #2
0
		/// <summary>
		/// Copies the member variables from another coordinate system.
		/// </summary>
		/// <param name="from">The coordinate system to copy from.</param>
		public virtual void CopyFrom(G2DCoordinateSystem from)
		{
			if (object.ReferenceEquals(this, from))
				return;

			this._layerWidth = from._layerWidth;
			this._layerHeight = from._layerHeight;
			this._axisStyleInformation.Clear();
		}
Example #3
0
        /// <summary>
        /// Copies the member variables from another coordinate system.
        /// </summary>
        /// <param name="from">The coordinate system to copy from.</param>
        public virtual void CopyFrom(G2DCoordinateSystem from)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

            _layerWidth  = from._layerWidth;
            _layerHeight = from._layerHeight;
            _axisStyleInformation.Clear();
        }
    void EhTypeChoiceChanged(object sender, EventArgs e)
    {
      ListNode sel = _view.SelectedNode;

      if (sel != null)
      {
        System.Type t = (System.Type)sel.Item;
        if (_tempdoc.GetType() != t)
        {
          _tempdoc = (G2DCoordinateSystem)Activator.CreateInstance((System.Type)sel.Item);
          Initialize(true);
        }
      }
    }
 public CoordinateSystemController(G2DCoordinateSystem doc)
 {
   _doc = doc;
   _tempdoc = (G2DCoordinateSystem)doc.Clone();
   Initialize(true);
 }
    public bool Apply()
    {
      
      bool result = _instanceController==null || _instanceController.Apply();
      if (true == result)
      {
        _doc = _tempdoc;
      }
      return result;

    }
Example #7
0
    /// <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);
      
    }
Example #8
0
 /// <summary>
 /// Copies the member variables from another coordinate system.
 /// </summary>
 /// <param name="from">The coordinate system to copy from.</param>
 public virtual void CopyFrom(G2DCoordinateSystem from)
 {
     this._layerWidth  = from._layerWidth;
     this._layerHeight = from._layerHeight;
     this._axisStyleInformation.Clear();
 }