Cairo-Chart/src/Grid.vala

41 lines
633 B
Vala
Raw Normal View History

2018-01-08 23:33:13 +03:00
namespace CairoChart {
2018-01-19 18:15:51 +03:00
/**
2018-01-19 18:22:22 +03:00
* Grid of the {@link Series}.
2018-01-19 18:15:51 +03:00
*/
2017-08-28 14:47:31 +03:00
public class Grid {
2018-01-19 21:31:59 +03:00
2017-08-28 14:47:31 +03:00
/*public enum GridType {
PRICK_LINE = 0, // default
LINE
}*/
2018-01-19 18:15:51 +03:00
/**
2018-01-19 18:22:22 +03:00
* Color of the ``Grid``.
2018-01-19 18:15:51 +03:00
*/
2017-08-28 14:47:31 +03:00
public Color color = Color (0, 0, 0, 0.1);
2018-01-19 18:15:51 +03:00
/**
2018-01-19 18:22:22 +03:00
* Line style of the ``Grid``.
2018-01-19 18:15:51 +03:00
*/
2018-01-20 13:11:17 +03:00
public LineStyle line_style = LineStyle ();
2017-08-28 18:16:48 +03:00
2018-01-19 18:15:51 +03:00
/**
2018-01-19 18:22:22 +03:00
* Gets a copy of the ``Grid``.
2018-01-19 18:15:51 +03:00
*/
2018-01-15 12:05:21 +03:00
public virtual Grid copy () {
2017-08-28 18:16:48 +03:00
var grid = new Grid ();
grid.color = this.color;
grid.line_style = this.line_style;
return grid;
}
2017-08-28 14:47:31 +03:00
2018-01-19 18:15:51 +03:00
/**
2018-01-19 18:22:22 +03:00
* Constructs a new ``Grid``.
2018-01-19 18:15:51 +03:00
*/
2017-08-28 14:47:31 +03:00
public Grid () {
line_style.dashes = {2, 3};
}
}
}