/// <summary> /// Initializes a new instance of the <see cref="ZoomState"/> class. /// 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 RequestState is from a pan or zoom. /// </param> public ZoomState(GraphPane pane, StateType type) { this._xAxis = new ScaleState(pane.XAxis); this._x2Axis = new ScaleState(pane.X2Axis); this._yAxis = new ScaleStateList(pane.YAxisList); this._y2Axis = new ScaleStateList(pane.Y2AxisList); this._type = type; }
/// <summary> /// Initializes a new instance of the <see cref="ScaleState"/> class. /// 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._majorStep = rhs._majorStep; this._minorStep = rhs._minorStep; this._max = rhs._max; this._majorUnit = rhs._majorUnit; this._minorUnit = rhs._minorUnit; this._format = rhs._format; this._mag = rhs._mag; this._minAuto = rhs._minAuto; this._majorStepAuto = rhs._majorStepAuto; this._minorStepAuto = rhs._minorStepAuto; this._maxAuto = rhs._maxAuto; this._formatAuto = rhs._formatAuto; this._magAuto = rhs._magAuto; }
/// <summary> /// Initializes a new instance of the <see cref="ZoomState"/> class. /// 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._x2Axis = new ScaleState(rhs._x2Axis); this._yAxis = new ScaleStateList(rhs._yAxis); this._y2Axis = new ScaleStateList(rhs._y2Axis); }