/// <summary> /// Constructor. /// </summary> public LegendBase() { Font = Font.FromName ("Arial 10"); BackgroundColor = Colors.White; BorderColor = Colors.Black; TextColor = Colors.Black; borderStyle_ = BorderType.Shadow; autoScaleText_ = false; }
private void Init() { plots_ = new System.Collections.ArrayList(); xAxisPositions_ = new System.Collections.ArrayList(); yAxisPositions_ = new System.Collections.ArrayList(); FontFamily fontFamily = new FontFamily("Arial"); TitleFont = new Font(fontFamily, 14, FontStyle.Regular, GraphicsUnit.Pixel); padding_ = 10; title_ = ""; autoScale_ = true; minorGridPen_ = new Pen(Color.LightGray); float[] pattern = { 1.0f, 2.0f }; minorGridPen_.DashPattern = pattern; majorGridPen_ = new Pen(Color.LightGray); xAxis1_ = null; xAxis2_ = null; yAxis1_ = null; yAxis2_ = null; pXAxis1Cache_ = null; pYAxis1Cache_ = null; pXAxis2Cache_ = null; pYAxis2Cache_ = null; titleBrush_ = new SolidBrush(Color.Black); plotBackColor_ = Color.White; showLegend_ = false; legendOffsetXAxis_ = XAxisPosition.Top; legendOffsetYAxis_ = YAxisPosition.Right; legendOffsetX_ = 10.0f; legendOffsetY_ = 1.0f; legendBorderStyle_ = Legend.BorderType.Shadow; verticalEdgeLegendPlacement_ = Legend.Placement.Outside; horizontalEdgeLegendPlacement_ = Legend.Placement.Inside; }