/// <summary> /// Constructor for the <see cref="GraphPane"/> object. This routine will /// initialize all member variables and classes, setting appropriate default /// values as defined in the <see cref="Default"/> class. /// </summary> /// <param name="rect"> A rectangular screen area where the graph is to be displayed. /// This area can be any size, and can be resize at any time using the /// <see cref="PaneBase.Rect"/> property. /// </param> /// <param name="title">The <see cref="PaneBase.Title"/> for this <see cref="GraphPane"/></param> /// <param name="xTitle">The <see cref="Axis.Title"/> for the <see cref="XAxis"/></param> /// <param name="yTitle">The <see cref="Axis.Title"/> for the <see cref="YAxis"/></param> public GraphPane( RectangleF rect, string title, string xTitle, string yTitle ) : base(title, rect) { _xAxis = new XAxis( xTitle ); _x2Axis = new X2Axis( "" ); _yAxisList = new YAxisList(); _y2AxisList = new Y2AxisList(); _yAxisList.Add( new YAxis( yTitle ) ); _y2AxisList.Add( new Y2Axis( string.Empty ) ); _curveList = new CurveList(); _zoomStack = new ZoomStateStack(); _isIgnoreInitial = Default.IsIgnoreInitial; _isBoundedRanges = Default.IsBoundedRanges; _isAlignGrids = false; _chart = new Chart(); _barSettings = new BarSettings( this ); _lineType = Default.LineType; }
/// <summary> /// Constructor for the <see cref="GraphPane"/> object. This routine will /// initialize all member variables and classes, setting appropriate default /// values as defined in the <see cref="Default"/> class. /// </summary> /// <param name="rect"> A rectangular screen area where the graph is to be displayed. /// This area can be any size, and can be resize at any time using the /// <see cref="PaneBase.Rect"/> property. /// </param> /// <param name="title">The <see cref="PaneBase.Title"/> for this <see cref="GraphPane"/></param> /// <param name="xTitle">The <see cref="Axis.Title"/> for the <see cref="XAxis"/></param> /// <param name="yTitle">The <see cref="Axis.Title"/> for the <see cref="YAxis"/></param> public GraphPane( RectangleF rect, string title, string xTitle, string yTitle ) : base( title, rect ) { _xAxis = new XAxis( xTitle ); _x2Axis = new X2Axis( "" ); _yAxisList = new YAxisList(); _y2AxisList = new Y2AxisList(); _yAxisList.Add( new YAxis( yTitle ) ); _y2AxisList.Add( new Y2Axis( string.Empty ) ); _curveList = new CurveList(); _zoomStack = new ZoomStateStack(); _isIgnoreInitial = Default.IsIgnoreInitial; _isBoundedRanges = Default.IsBoundedRanges; _isAlignGrids = false; _chart = new Chart(); _barSettings = new BarSettings( this ); _lineType = Default.LineType; m_angle = Default.Angle; m_gasGaugeRegionWidth = Default.GasGaugeRegionWidth; m_gasGaugeBorder = Default.GasGaugeBorder; m_showGasGaugeValueLabel = Default.ShowGasGaugeValueLabel; m_clockwise = Default.Clockwise; m_watchAngle = Default.WatchAngle; m_pieHeight = Default.PieHeight; m_usedAngleBegin = Default.UsedAngleBegin; m_usedAngleEnd = Default.UsedAngleEnd; }