Exemple #1
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see c_ref="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);
 }
Exemple #2
0
 /// <summary>
 /// Construct a <see c_ref="ZoomState"/> object from the scale ranges settings contained
 /// in the specified <see c_ref="GraphPane"/>.
 /// </summary>
 /// <param name="pane">The <see c_ref="GraphPane"/> from which to obtain the scale
 /// range values.
 /// </param>
 /// <param name="type">A <see c_ref="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);
     _x2Axis = new ScaleState(pane.X2Axis);
     _yAxis  = new ScaleStateList(pane.YAxisList);
     _y2Axis = new ScaleStateList(pane.Y2AxisList);
     _type   = type;
 }
Exemple #3
0
        /// <summary>
        /// The Copy Constructor
        /// </summary>
        /// <param name="rhs">The <see c_ref="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;
        }
Exemple #4
0
		/// <summary>
		/// The Copy Constructor
		/// </summary>
		/// <param name="rhs">The <see c_ref="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;
		}
Exemple #5
0
		/// <summary>
		/// The Copy Constructor
		/// </summary>
		/// <param name="rhs">The <see c_ref="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 );
		}
Exemple #6
0
		/// <summary>
		/// Construct a <see c_ref="ZoomState"/> object from the scale ranges settings contained
		/// in the specified <see c_ref="GraphPane"/>.
		/// </summary>
		/// <param name="pane">The <see c_ref="GraphPane"/> from which to obtain the scale
		/// range values.
		/// </param>
		/// <param name="type">A <see c_ref="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 );
			_x2Axis = new ScaleState( pane.X2Axis );
			_yAxis = new ScaleStateList( pane.YAxisList );
			_y2Axis = new ScaleStateList( pane.Y2AxisList );
			_type = type;
		}