コード例 #1
0
        public GeoPlotCartesian()
        {
            InitializeComponent();

            tracks           = new Dictionary <string, FixedSizeLIFO <PointF> >();
            trackColors      = new Dictionary <string, Color>();
            trackPenSizes    = new Dictionary <string, float>();
            trackPens        = new Dictionary <string, Pen>();
            latestPointMarks = new Dictionary <string, bool>();
            course           = new Dictionary <string, float>();

            miscInfoBrs = new SolidBrush(miscInfoClr);
            miscInfoFnt = new System.Drawing.Font("Consolas", miscFntSize, GraphicsUnit.Millimeter);

            history      = new FixedSizeLIFO <string>(historyLinesNumber);
            histLinesFnt = new System.Drawing.Font("Consolas", historyFntSize, GraphicsUnit.Millimeter);
            histLinesBrs = new SolidBrush(histLineClr);

            axisLblFnt = new System.Drawing.Font("Consolas", axisLblsFntSize, GraphicsUnit.Millimeter);
            axisLblBrs = new SolidBrush(axisLblClr);

            gridPen = new Pen(gridColor, 1.0f);

            coursePen           = new Pen(gridColor, 1.0f);
            coursePen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;

            tracksToFit = new List <string>();
        }
コード例 #2
0
        public uOSMGeoPlot()
        {
            InitializeComponent();

            tracks = new Dictionary <string, DrawableTrack>();

            tileBorderPen           = new Pen(Color.DarkGray, 1.0f);
            tileBorderPen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;

            if (LegendFont == null)
            {
                LegendFont = this.Font;
            }

            if (LeftUpperTextFont == null)
            {
                LeftUpperTextFont = this.Font;
            }

            if (ScaleLineFont == null)
            {
                ScaleLineFont = this.Font;
            }

            if (ScaleLineColor == Color.Empty)
            {
                ScaleLineColor = this.ForeColor;
            }

            scaleLineBrush = new SolidBrush(ScaleLineColor);

            scaleLinePen    = new Pen(Color.Black, scalePenWidth);
            scaleSubLinePen = new Pen(Color.White, scaleSubPenWidth);

            history = new FixedSizeLIFO <string>(historyLinesNumber);

            if (MeasurementLineColor == Color.Empty)
            {
                MeasurementLineColor = Color.Black;
            }

            if (MeasurementTextFont == null)
            {
                MeasurementTextFont = this.Font;
            }

            if (MeasurementTextColor == Color.Empty)
            {
                MeasurementTextColor = Color.Black;
            }

            mSubLinePen = new Pen(Color.White, mSubLineWidth);
            mLinePen    = new Pen(MeasurementLineColor, mLineWidth);

            if (TextBackgroundColor != Color.Empty)
            {
                textBackgroundBrush = new SolidBrush(TextBackgroundColor);
            }
        }
コード例 #3
0
        public DrawableTrack(int lifoSize, TrackPointType trackPointType, Pen trackMarkerPen, float trackMarkerPointSize, bool isLastPointEnlarged, Pen coursePen, float courseLineLength)
        {
            trkLIFO = new FixedSizeLIFO <PointF>(lifoSize);

            if (trackPointType != TrackPointType.Rectangle)
            {
                throw new NotImplementedException("TrackPointType.Rectangle supported only so far");
            }

            trkPointType        = trackPointType;
            trkPen              = trackMarkerPen;
            trkMarkerPointSize  = trackMarkerPointSize;
            IsLastPointEnlarged = isLastPointEnlarged;

            crsPen        = coursePen;
            crsLineLength = courseLineLength;

            Reset();
        }