Exemplo n.º 1
0
 public GraphPoint(decimal x, decimal y)  : this(x, y, GraphDefaults.GraphPointSize, GraphDefaults.GraphPoint())
 {
 }
Exemplo n.º 2
0
        public GraphGrid(Size2 size, int xIntervals, int yIntervals)
        {
            var intervalWidth  = size.Width / (xIntervals - 1);
            var intervalHeight = size.Height / (yIntervals - 1);

            for (var column = 0; column < yIntervals; column++)
            {
                _visuals.Add(new Line(new Vector2(intervalWidth * column, 0), new Vector2(intervalWidth * column, size.Height), GraphDefaults.GraphBackgroundLine()));
            }
            for (var row = 0; row < yIntervals; row++)
            {
                _visuals.Add(new Line(new Vector2(0, intervalHeight * row), new Vector2(size.Width, intervalHeight * row), GraphDefaults.GraphBackgroundLine()));
            }
        }
Exemplo n.º 3
0
 public GraphLine(int xIntervals, int yIntervals, Size2 size, params GraphPoint[] points)
     : this(xIntervals, yIntervals, size, GraphDefaults.GraphLine(), points)
 {
 }