Beispiel #1
0
        /// <summary>
        /// Draws the new line based on currently entered data. This is called by the
        /// <c>base.Paint</c> method.
        /// </summary>
        /// <param name="display">The display to draw to</param>
        /// <param name="style">The drawing style</param>
        internal override void RenderGeometry(ISpatialDisplay display, IDrawStyle style)
        {
            // The supplied style is a solid magenta line, which doesn't show up well
            // on top of a dotted magenta circle. So make it a bit thicker.

            if (m_Geom != null)
            {
                DrawStyle thickStyle = new DrawStyle(style.LineColor);
                thickStyle.Pen.Width = 3.0f;
                m_Geom.Render(display, thickStyle);
            }
        }