Neco/LandView/GraphicsEngine.cs
/// <summary>Draws a plot outline and label for the given plot</summary>
/// <param name="P">Plot to draw</param>
/// <param name="GRM">Graphics to Draw onto</param>
/// <param name="Origin">Point that defines 0,0 on the given graphics</param>
/// <param name="PlotPen">Pen to draw the outline with</param>
/// <param name="LabelBackground">Background color of the Label</param>
/// <param name="LabelForeground">Foreground color of the label</param>
/// <param name="NameFont">Font used to draw the name</param>
/// <param name="InfoFont">Font used to draw information</param>
Draws a plot outline and label for the given plot
Draws a plot outline and label for the given plot
public static void DrawPlot(Plot P, Graphics GRM, Point Origin, Pen PlotPen, Color LabelBackground, Color LabelForeground, Font NameFont, Font InfoFont) {
            DrawPlotOutline(P, GRM, Origin, PlotPen);
            if (P.Width() < 50 || P.Height() < 50) { return; } 
            DrawPlotLabel(P, GRM, Origin, LabelBackground, LabelForeground, NameFont, InfoFont);
        }
public static void DrawPlot ( Plot P , Graphics GRM , Point Origin , Pen PlotPen , Color LabelBackground , Color LabelForeground , Font NameFont , Font InfoFont ) { DrawPlotOutline ( P , GRM , Origin , PlotPen ) ; if ( P . Width ( ) < 50 || P . Height ( ) < 50 ) { return ; } DrawPlotLabel ( P , GRM , Origin , LabelBackground , LabelForeground , NameFont , InfoFont ) ; }
Draws a plot outline and label for the given plot
Draws a plot outline and label for the given plot
//if it's too small, don't make the label
P
Plot
Plot to draw
Plot to draw
GRM
Graphics
Graphics to Draw onto
Graphics to Draw onto
Origin
Point
Point that defines 0,0 on the given graphics
Point that defines 0 0 on the given graphics
PlotPen
Pen
Pen to draw the outline with
Pen to draw the outline with
LabelBackground
Color
Background color of the Label
Background color of the Label
LabelForeground
Color
Foreground color of the label
Foreground color of the label
NameFont
Font
Font used to draw the name
Font used to draw the name
InfoFont
Font
Font used to draw information
Font used to draw information