コード例 #1
0
 /// <summary>
 /// Construct a <see cref="ZoomState"/> object from the scale ranges settings contained
 /// in the specified <see cref="GraphPane"/>.
 /// </summary>
 /// <param name="pane">The <see cref="GraphPane"/> from which to obtain the scale
 /// range values.
 /// </param>
 /// <param name="type">A <see cref="StateType"/> enumeration that indicates whether
 /// this saved state is from a pan or zoom.</param>
 public ZoomState(GraphPane pane, StateType type)
 {
     _xAxis  = new ScaleState(pane.XAxis);
     _yAxis  = new ScaleStateList(pane.YAxisList);
     _y2Axis = new ScaleStateList(pane.Y2AxisList);
     _type   = type;
 }
コード例 #2
0
ファイル: ZoomState.cs プロジェクト: kjburns31/vixen-modules
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="ZoomState"/> object from which to copy</param>
 public ZoomState( ZoomState rhs )
 {
     _xAxis = new ScaleState( rhs._xAxis );
     _x2Axis = new ScaleState( rhs._x2Axis );
     _yAxis = new ScaleStateList( rhs._yAxis );
     _y2Axis = new ScaleStateList( rhs._y2Axis );
 }
コード例 #3
0
ファイル: ZoomState.cs プロジェクト: zrolfs/pwiz
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="ZoomState"/> object from which to copy</param>
 public ZoomState(ZoomState rhs)
 {
     _xAxis  = new ScaleState(rhs._xAxis);
     _x2Axis = new ScaleState(rhs._x2Axis);
     _yAxis  = new ScaleStateList(rhs._yAxis);
     _y2Axis = new ScaleStateList(rhs._y2Axis);
 }
コード例 #4
0
ファイル: ZoomState.cs プロジェクト: koson/ResManagerAdmin
 /// <summary>
 /// Construct a <see cref="ZoomState"/> object from the scale ranges settings contained
 /// in the specified <see cref="GraphPane"/>.
 /// </summary>
 /// <param name="pane">The <see cref="GraphPane"/> from which to obtain the scale
 /// range values.
 /// </param>
 /// <param name="type">A <see cref="StateType"/> enumeration that indicates whether
 /// this saved state is from a pan or zoom.</param>
 public ZoomState(GraphPane pane, StateType type)
 {
     this.xAxis  = new ScaleState(pane.XAxis);
     this.yAxis  = new ScaleState(pane.YAxis);
     this.y2Axis = new ScaleState(pane.Y2Axis);
     this.type   = type;
 }
コード例 #5
0
 /// <summary>
 /// Construct a <see cref="ZoomState"/> object from the scale ranges settings contained
 /// in the specified <see cref="GraphPane"/>.
 /// </summary>
 /// <param name="pane">The <see cref="GraphPane"/> from which to obtain the scale
 /// range values.
 /// </param>
 /// <param name="type">A <see cref="StateType"/> enumeration that indicates whether
 /// this saved state is from a pan or zoom.</param>
 public ZoomState(GraphPane pane, StateType type)
 {
     _xAxis = new ScaleState(pane.XAxis);
     _yAxis = new ScaleStateList(pane.YAxisList);
     _y2Axis = new ScaleStateList(pane.Y2AxisList);
     _type = type;
 }
コード例 #6
0
        /// <summary>
        /// The Copy Constructor
        /// </summary>
        /// <param name="rhs">The <see cref="ScaleState"/> object from which to copy</param>
        public ScaleState(ScaleState rhs)
        {
            _min       = rhs._min;
            _majorStep = rhs._majorStep;
            _minorStep = rhs._minorStep;
            _max       = rhs._max;
            _majorUnit = rhs._majorUnit;
            _minorUnit = rhs._minorUnit;

            _format = rhs._format;
            _mag    = rhs._mag;

            _minAuto       = rhs._minAuto;
            _majorStepAuto = rhs._majorStepAuto;
            _minorStepAuto = rhs._minorStepAuto;
            _maxAuto       = rhs._maxAuto;

            _formatAuto = rhs._formatAuto;
            _magAuto    = rhs._magAuto;
        }
コード例 #7
0
ファイル: ZoomState.cs プロジェクト: koson/ResManagerAdmin
        /// <summary>
        /// The Copy Constructor
        /// </summary>
        /// <param name="rhs">The <see cref="ScaleState"/> object from which to copy</param>
        public ScaleState(ScaleState rhs)
        {
            this.min       = rhs.min;
            this.step      = rhs.step;
            this.minorStep = rhs.minorStep;
            this.max       = rhs.max;
            this.majorUnit = rhs.majorUnit;
            this.minorUnit = rhs.minorUnit;

            this.scaleFormat = rhs.scaleFormat;
            this.scaleMag    = rhs.scaleMag;

            this.minAuto       = rhs.minAuto;
            this.stepAuto      = rhs.stepAuto;
            this.minorStepAuto = rhs.minorStepAuto;
            this.maxAuto       = rhs.maxAuto;

            this.scaleFormatAuto = rhs.scaleFormatAuto;
            this.scaleMagAuto    = rhs.scaleMagAuto;
        }
コード例 #8
0
 /// <summary>
 /// Add a <see cref="ScaleState"/> object to the collection at the end of the list.
 /// </summary>
 /// <param name="state">A reference to the <see cref="ScaleState"/> object to
 /// be added</param>
 /// <seealso cref="IList.Add"/>
 public void Add(ScaleState state)
 {
     List.Add(state);
 }
コード例 #9
0
 /// <summary>
 /// Add a <see cref="ScaleState"/> object to the collection at the end of the list.
 /// </summary>
 /// <param name="state">A reference to the <see cref="ScaleState"/> object to
 /// be added</param>
 /// <seealso cref="IList.Add"/>
 public void Add( ScaleState state )
 {
     List.Add( state );
 }
コード例 #10
0
ファイル: ZoomState.cs プロジェクト: koson/ResManagerAdmin
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="ZoomState"/> object from which to copy</param>
 public ZoomState(ZoomState rhs)
 {
     this.xAxis  = new ScaleState(rhs.xAxis);
     this.yAxis  = new ScaleState(rhs.yAxis);
     this.y2Axis = new ScaleState(rhs.y2Axis);
 }
コード例 #11
0
ファイル: ScaleState.cs プロジェクト: stewmc/vixen
		/// <summary>
		/// The Copy Constructor
		/// </summary>
		/// <param name="rhs">The <see cref="ScaleState"/> object from which to copy</param>
		public ScaleState(ScaleState rhs)
		{
			_min = rhs._min;
			_majorStep = rhs._majorStep;
			_minorStep = rhs._minorStep;
			_max = rhs._max;
			_majorUnit = rhs._majorUnit;
			_minorUnit = rhs._minorUnit;

			_format = rhs._format;
			_mag = rhs._mag;

			_minAuto = rhs._minAuto;
			_majorStepAuto = rhs._majorStepAuto;
			_minorStepAuto = rhs._minorStepAuto;
			_maxAuto = rhs._maxAuto;

			_formatAuto = rhs._formatAuto;
			_magAuto = rhs._magAuto;
		}