Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see c_ref="ScaleStateList"/> object from which to copy</param>
 public ScaleStateList(ScaleStateList rhs)
 {
     foreach (ScaleState item in rhs)
     {
         Add(item.Clone());
     }
 }
Ejemplo n.º 3
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;
 }