예제 #1
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="LineItem"/> object from which to copy</param>
 public FilledLineItem(FilledLineItem rhs)
     : base(rhs)
 {
     _symbol     = new Symbol(rhs.Symbol);
     _line       = new FilledLine(rhs.FilledLine);
     LowerPoints = rhs.LowerPoints;
 }
예제 #2
0
        /// <summary>
        /// Create a new <see cref="FilledLineItem"/> using the specified properties.
        /// </summary>
        /// <param name="label">The _label that will appear in the legend.</param>
        /// <param name="upperPoints">A <see cref="IPointList"/> of double precision value pairs that define
        /// the X and upper Y values for this curve</param>
        /// <param name="lowerPoints">A <see cref="IPointList"/> of double precision value pairs that define
        /// the X and lower Y values for this curve</param>
        /// <param name="color">A <see cref="System.Drawing.Color"/> value that will be applied to
        /// the <see cref="Line"/> and <see cref="Symbol"/> properties.
        /// </param>
        /// <param name="symbolType">A <see cref="SymbolType"/> enum specifying the
        /// type of symbol to use for this <see cref="LineItem"/>.  Use <see cref="SymbolType.None"/>
        /// to hide the symbols.</param>
        /// <param name="lineWidth">The width (in points) to be used for the <see cref="Line"/>.  This
        /// width is scaled based on <see cref="PaneBase.CalcScaleFactor"/>.  Use a value of zero to
        /// hide the line (see <see cref="ZedGraph.LineBase.IsVisible"/>).</param>
        public FilledLineItem( string label, IPointList upperPoints, IPointList lowerPoints, System.Drawing.Color color, SymbolType symbolType, float lineWidth )
            : base(label)
        {
            Points = upperPoints ?? new PointPairList();
            LowerPoints = lowerPoints ?? new PointPairList();

            _line = new FilledLine( color );
            if ( lineWidth == 0 )
                _line.IsVisible = false;
            else
                _line.Width = lineWidth;

            _symbol = new Symbol( symbolType, color );
        }
예제 #3
0
        /// <summary>
        /// Create a new <see cref="FilledLineItem"/> using the specified properties.
        /// </summary>
        /// <param name="label">The _label that will appear in the legend.</param>
        /// <param name="upperPoints">A <see cref="IPointList"/> of double precision value pairs that define
        /// the X and upper Y values for this curve</param>
        /// <param name="lowerPoints">A <see cref="IPointList"/> of double precision value pairs that define
        /// the X and lower Y values for this curve</param>
        /// <param name="color">A <see cref="System.Drawing.Color"/> value that will be applied to
        /// the <see cref="Line"/> and <see cref="Symbol"/> properties.
        /// </param>
        /// <param name="symbolType">A <see cref="SymbolType"/> enum specifying the
        /// type of symbol to use for this <see cref="LineItem"/>.  Use <see cref="SymbolType.None"/>
        /// to hide the symbols.</param>
        /// <param name="lineWidth">The width (in points) to be used for the <see cref="Line"/>.  This
        /// width is scaled based on <see cref="PaneBase.CalcScaleFactor"/>.  Use a value of zero to
        /// hide the line (see <see cref="ZedGraph.LineBase.IsVisible"/>).</param>
        public FilledLineItem(string label, IPointList upperPoints, IPointList lowerPoints, System.Drawing.Color color, SymbolType symbolType, float lineWidth)
            : base(label)
        {
            Points      = upperPoints ?? new PointPairList();
            LowerPoints = lowerPoints ?? new PointPairList();

            _line = new FilledLine(color);
            if (lineWidth == 0)
            {
                _line.IsVisible = false;
            }
            else
            {
                _line.Width = lineWidth;
            }

            _symbol = new Symbol(symbolType, color);
        }
예제 #4
0
 public FilledLineItem(string label)
     : base(label)
 {
     _line = new FilledLine();
 }
예제 #5
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="LineItem"/> object from which to copy</param>
 public FilledLineItem(FilledLineItem rhs)
     : base(rhs)
 {
     _symbol = new Symbol( rhs.Symbol );
     _line = new FilledLine( rhs.FilledLine );
     LowerPoints = rhs.LowerPoints;
 }
예제 #6
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The Line object from which to copy</param>
 public FilledLine(FilledLine rhs) : base(rhs)
 {
 }
예제 #7
0
 public FilledLineItem(string label) : base(label)
 {
     _line = new FilledLine();
 }
예제 #8
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The Line object from which to copy</param>
 public FilledLine(FilledLine rhs)
     : base(rhs)
 {
 }