Cairo-Chart/src/Grid.vala

35 lines
499 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
* Line style of the ``Grid``.
2018-01-19 18:15:51 +03:00
*/
2018-01-22 09:04:26 +03:00
public LineStyle 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 ();
2018-01-22 09:04:26 +03:00
grid.style = this.style;
2017-08-28 18:16:48 +03:00
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 () {
2018-01-22 09:04:26 +03:00
style.dashes = {2, 3};
2017-08-28 14:47:31 +03:00
}
}
}