Пример #1
0
        /// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="type">Тип графика.</param>
        /// <param name="paint">Краска для линий.</param>
        /// <param name="frame">Рамка.</param>
        /// <param name="lineThickness">Толщина линий.</param>
        public Plot(PlotType type, RestrictiveFrame frame, float lineThickness)
        {
            Type         = type;
            Frame        = frame;
            FirstPointX  = Frame.GetFirstPointX();
            FirstPointY  = Frame.GetFirstPointY();
            SecondPointX = Frame.GetSecondPointX();
            SecondPointY = Frame.GetSecondPointY();

            RedPaint  = PaintsKeeper.paints["Red Paint"];
            BluePaint = PaintsKeeper.paints["Blue Paint"];
            GrayPaint = PaintsKeeper.paints["Gray Paint"];
            TextPaint = PaintsKeeper.paints["Text Paint"];
        }
Пример #2
0
 /// <summary>
 /// Рисует координаты.
 /// </summary>
 /// <param name="coordinates">Координаты.</param>
 /// <param name="frame">Рамка.</param>
 public void PaintCoordinates(Coordinates coordinates, Parameters parameters, RestrictiveFrame frame)
 {
     CoordinatesPainter.Paint(coordinates, parameters, frame, _canvas);
 }
Пример #3
0
 /// <summary>
 /// Рисует рамку.
 /// </summary>
 /// <param name="frame">Рамка.</param>
 public void PaintFrame(RestrictiveFrame frame)
 {
     FramePainter.Paint(frame, _canvas);
 }