[Quantproject-developers] QuantProject/b5_Presentation/Charting CharPlot.cs,NONE,1.1
Brought to you by:
glauco_1
|
From: <gla...@pr...> - 2004-01-26 04:39:28
|
Update of /cvsroot/quantproject/QuantProject/b5_Presentation/Charting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20889 Added Files: CharPlot.cs Log Message: Single plot to be charted by the Chart class --- NEW FILE: CharPlot.cs --- /* QuantProject - Quantitative Finance Library DataBase.cs Copyright (C) 2003 Glauco Siliprandi This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ using System; using System.Drawing; using QuantProject.ADT.Histories; namespace QuantProject.Presentation.Charting { /// <summary> /// Single plot to be charted by the Chart class /// </summary> public class ChartPlot { private History history; private Color color; private DateTime startDateTime; private DateTime endDateTime; public Color Color { get { return this.color; } set { this.color = value; } } public DateTime StartDateTime { get { return this.startDateTime; } set { this.startDateTime = value; } } public DateTime EndDateTime { get { return this.endDateTime; } set { this.endDateTime = value; } } public History History { get { return this.history; } set { this.history = value; } } public ChartPlot( History history ) { this.history = history; this.color = Color.Red; this.startDateTime = (DateTime)this.history.GetKey( 0 ); this.endDateTime = (DateTime)this.history.GetKey( this.history.Count - 1 ); } public ChartPlot( History history , Color color , DateTime startDateTime , DateTime endDateTime ) { this.history = history; this.color = color; this.startDateTime = startDateTime; this.endDateTime = endDateTime; } } } |