コード例 #1
0
ファイル: MultiLineGraph.cs プロジェクト: modernist/CrawlWave
 /// <summary>
 /// Adds the <see cref="MultiLineGraphItem"/> objects contained into an <see cref="ItemCollection"/>
 /// into this collection.
 /// </summary>
 /// <param name="items">The <see cref="ItemCollection"/> containing the <see cref="MultiLineGraphItem"/>
 /// objects to be added in this collection.</param>
 public void Add(ItemCollection items)
 {
     if (items == null)
     {
         throw new ArgumentNullException("items");
     }
     for(int i=0; i<items.Count; i++)
     {
         this.Add(items[i]);
     }
 }
コード例 #2
0
ファイル: MultiLineGraph.cs プロジェクト: modernist/CrawlWave
        private string xText, yText; //x-axis and y-axis text

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Constructs an instance of the <see cref="MultiLineGraph"/> class and sets all
        /// the properties to their default values.
        /// </summary>
        public MultiLineGraph()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();
            SetStyle(ControlStyles.AllPaintingInWmPaint|ControlStyles.UserPaint|ControlStyles.DoubleBuffer|ControlStyles.ResizeRedraw,true);
            currentPos=-1;
            currentValue=0;
            currentMaxValue=0;
            minValue=0;
            maxValue=100;
            gridColor=Color.MediumBlue;
            BackColor=Color.Black;
            BorderStyle=BorderStyle.Fixed3D;
            itemList = new ItemCollection();
            showLegend = false;
            xText = String.Empty;
            yText = String.Empty;
            linePen = new Pen(gridColor, 1f);
            axesPen = new Pen(ForeColor, 1.5f);
            triangeBrush = new SolidBrush(ForeColor);
            ForeColor=Color.CornflowerBlue;
        }
コード例 #3
0
ファイル: MultiLineGraph.cs プロジェクト: modernist/CrawlWave
 /// <summary>
 /// Constructs a new instance of the <see cref="ItemCollection"/> class and initializes
 /// it with the contents of another <see cref="ItemCollection"/>.
 /// </summary>
 /// <param name="items"></param>
 public ItemCollection(ItemCollection items)
     : base()
 {
     this.Add(items);
 }
コード例 #4
0
 /// <summary>
 /// Constructs a new instance of the <see cref="ItemCollection"/> class and initializes
 /// it with the contents of another <see cref="ItemCollection"/>.
 /// </summary>
 /// <param name="items"></param>
 public ItemCollection(ItemCollection items) : base()
 {
     this.Add(items);
 }