Example #1
0
 public Legend()
 {
     legendPosition    = LegendPositionEnum.NorthEast;
     textColor         = Color.Black;
     isLegendVisible   = false;
     isBorderVisible   = true;
     legendBackColor   = Color.White;
     legendBorderColor = Color.Black;
     legendFont        = new Font("Arial", 8, FontStyle.Regular);
 }
Example #2
0
 public Legend()
 {
     legendPosition = LegendPositionEnum.NorthEast;
     textColor = Color.Black;
     isLegendVisible = false;
     isBorderVisible = true;
     legendBackColor = Color.White;
     legendBorderColor = Color.Black;
     legendFont = new Font ("Arial", 8f, FontStyle.Regular);
 }
Example #3
0
 public Legend()
 {
     //chart2d = ct2d;
     isLegendVisible    = true;
     isInside           = true;
     legendPosition     = LegendPositionEnum.NorthEast;
     isVertical         = true;
     isBorderVisible    = true;
     legendColor        = new GraphColor();
     textStyle          = new TextStyle();
     textStyle.TextSize = 8f;
     xLgOffSet          = 8f;
     yLgOffSet          = 8f;
 }
Example #4
0
        bool _InsidePlotArea;           //Boolean If true, draw legend inside plot area, otherwise
        // draw outside plot area (default).

        internal Legend(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p)
        {
            _Visible        = false;
            _Style          = null;
            _Position       = LegendPositionEnum.RightTop;
            _Layout         = LegendLayoutEnum.Column;
            _InsidePlotArea = false;

            // Loop thru all the child nodes
            foreach (XmlNode xNodeLoop in xNode.ChildNodes)
            {
                if (xNodeLoop.NodeType != XmlNodeType.Element)
                {
                    continue;
                }
                switch (xNodeLoop.Name)
                {
                case "Visible":
                    _Visible = XmlUtil.Boolean(xNodeLoop.InnerText, OwnerReport.rl);
                    break;

                case "Style":
                    _Style = new Style(r, this, xNodeLoop);
                    break;

                case "Position":
                    _Position = LegendPosition.GetStyle(xNodeLoop.InnerText, OwnerReport.rl);
                    break;

                case "Layout":
                    _Layout = LegendLayout.GetStyle(xNodeLoop.InnerText, OwnerReport.rl);
                    break;

                case "InsidePlotArea":
                    _InsidePlotArea = XmlUtil.Boolean(xNodeLoop.InnerText, OwnerReport.rl);
                    break;

                default:
                    break;
                }
            }
        }
Example #5
0
File: Legend.cs Project: mnisl/OD
		bool _InsidePlotArea;	//Boolean If true, draw legend inside plot area, otherwise
								// draw outside plot area (default).
	
		internal Legend(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p)
		{
			_Visible=false;
			_Style=null;
			_Position=LegendPositionEnum.RightTop;
			_Layout=LegendLayoutEnum.Column;
			_InsidePlotArea=false;

			// Loop thru all the child nodes
			foreach(XmlNode xNodeLoop in xNode.ChildNodes)
			{
				if (xNodeLoop.NodeType != XmlNodeType.Element)
					continue;
				switch (xNodeLoop.Name)
				{
					case "Visible":
						_Visible = XmlUtil.Boolean(xNodeLoop.InnerText, OwnerReport.rl);
						break;
					case "Style":
						_Style = new Style(r, this, xNodeLoop);
						break;
					case "Position":
						_Position = LegendPosition.GetStyle(xNodeLoop.InnerText, OwnerReport.rl);
						break;
					case "Layout":
						_Layout = LegendLayout.GetStyle(xNodeLoop.InnerText, OwnerReport.rl);
						break;
					case "InsidePlotArea":
						_InsidePlotArea = XmlUtil.Boolean(xNodeLoop.InnerText, OwnerReport.rl);
						break;
					default:
						break;
				}
			}
		

		}
Example #6
0
 public Legend()
 {
     isLegend       = false;
     isBorder       = true;
     legendPosition = LegendPositionEnum.NorthEast;
 }