コード例 #1
0
ファイル: Connector.cs プロジェクト: thunder176/HeuristicLab
        protected virtual void DrawSquareConnector(Graphics g)
        {
            Pen   pen   = ArtPalette.GetSimpleConnectorPenStyle().DrawingPen();
            Brush brush = ArtPalette.GetSimpleConnectorPaintStyle().GetBrush(this.Rectangle);

            g.DrawRectangle(pen, this.Rectangle);
        }
コード例 #2
0
ファイル: Connector.cs プロジェクト: thunder176/HeuristicLab
        // ------------------------------------------------------------------
        /// <summary>
        /// Draws a blue 'x' using 'Dot' as the line style, with a transparent
        /// color.
        /// </summary>
        /// <param name="g">Graphics</param>
        // ------------------------------------------------------------------
        protected virtual void DrawSimpleConnector(Graphics g)
        {
            Pen   pen   = ArtPalette.GetSimpleConnectorPenStyle().DrawingPen();
            Brush brush =
                ArtPalette.GetSimpleConnectorPaintStyle().GetBrush(
                    this.Rectangle);

            GraphicsPath path = new GraphicsPath();

            // Diagonal line from top left to bottom right.
            g.DrawLine(pen, this.TopLeftCorner, this.BottomRightCorner);


            // Diagonal line from top right to bottom lrft.
            g.DrawLine(pen, this.TopRightCorner, this.BottomLeftCorner);
        }