/// <summary> /// The Copy Constructor /// </summary> /// <param name="rhs">The ArrowList object from which to copy</param> public ArrowList(ArrowList rhs) { foreach (ArrowItem item in rhs) { this.Add(new ArrowItem(item)); } }
/// <summary> /// The Copy Constructor /// </summary> /// <param name="rhs">The GraphPane object from which to copy</param> public GraphPane(GraphPane rhs) { paneRect = rhs.PaneRect; xAxis = new XAxis(rhs.XAxis); yAxis = new YAxis(rhs.YAxis); y2Axis = new Y2Axis(rhs.Y2Axis); legend = new Legend(rhs.Legend); curveList = new CurveList(rhs.CurveList); textList = new TextList(rhs.TextList); arrowList = new ArrowList(rhs.ArrowList); this.title = rhs.Title; this.isShowTitle = rhs.IsShowTitle; this.fontSpec = new FontSpec(rhs.FontSpec); this.isIgnoreInitial = rhs.IsIgnoreInitial; this.isPaneFramed = rhs.IsPaneFramed; this.paneFrameColor = rhs.PaneFrameColor; this.paneFramePenWidth = rhs.PaneFramePenWidth; this.paneBackColor = rhs.PaneBackColor; this.isAxisFramed = rhs.IsAxisFramed; this.axisFrameColor = rhs.AxisFrameColor; this.axisFramePenWidth = rhs.AxisFramePenWidth; this.axisBackColor = rhs.AxisBackColor; this.baseDimension = rhs.BaseDimension; this.paneGap = rhs.PaneGap; }
public RectangleF axisRect; // The area of the pane defined by the axes /// <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="Def"/> class. /// </summary> /// <param name="paneRect"> 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="PaneRect"/> property. /// </param> /// <param name="paneTitle">The <see cref="Axis.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 paneRect, string paneTitle, string xTitle, string yTitle) { this.paneRect = paneRect; xAxis = new XAxis(xTitle); yAxis = new YAxis(yTitle); y2Axis = new Y2Axis(""); legend = new Legend(); curveList = new CurveList(); textList = new TextList(); arrowList = new ArrowList(); this.title = paneTitle; this.isShowTitle = Def.Pane.ShowTitle; this.fontSpec = new FontSpec(Def.Pane.FontFamily, Def.Pane.FontSize, Def.Pane.FontColor, Def.Pane.FontBold, Def.Pane.FontItalic, Def.Pane.FontUnderline); this.fontSpec.IsFilled = false; this.fontSpec.IsFramed = false; this.isIgnoreInitial = Def.Ax.IgnoreInitial; this.isPaneFramed = Def.Pane.IsFramed; this.paneFrameColor = Def.Pane.FrameColor; this.paneFramePenWidth = Def.Pane.FramePenWidth; this.paneBackColor = Def.Pane.BackColor; this.isAxisFramed = Def.Ax.IsFramed; this.axisFrameColor = Def.Ax.FrameColor; this.axisFramePenWidth = Def.Ax.FramePenWidth; this.axisBackColor = Def.Ax.BackColor; this.baseDimension = Def.Pane.BaseDimension; this.paneGap = Def.Pane.Gap; }