2017-02-16 15:10:53 +03:00
|
|
|
using Cairo;
|
|
|
|
|
|
|
|
namespace Gtk.CairoChart {
|
|
|
|
|
|
|
|
public class Series {
|
|
|
|
|
|
|
|
public Point[] points = {};
|
|
|
|
public enum Sort {
|
|
|
|
BY_X = 0,
|
|
|
|
BY_Y = 1,
|
|
|
|
NO_SORT
|
|
|
|
}
|
|
|
|
public Sort sort = Sort.BY_X;
|
|
|
|
|
|
|
|
public Axis axis_x = new Axis();
|
|
|
|
public Axis axis_y = new Axis();
|
|
|
|
|
|
|
|
public enum MarkerType {
|
|
|
|
NONE = 0, // default
|
|
|
|
SQUARE,
|
|
|
|
CIRCLE,
|
|
|
|
TRIANGLE,
|
|
|
|
PRICLE_SQUARE,
|
|
|
|
PRICLE_CIRCLE,
|
|
|
|
PRICLE_TRIANGLE
|
|
|
|
}
|
|
|
|
|
|
|
|
public Place place = new Place();
|
|
|
|
public Text title = new Text ();
|
|
|
|
public MarkerType marker_type = MarkerType.SQUARE;
|
|
|
|
|
|
|
|
public Grid grid = new Grid ();
|
|
|
|
|
2017-08-19 00:06:26 +03:00
|
|
|
public GLib.List<Float128?> cursors = new List<Float128?> ();
|
2017-02-16 15:10:53 +03:00
|
|
|
public LineStyle line_style = new LineStyle ();
|
|
|
|
|
|
|
|
protected Color _color = Color (0.0, 0.0, 0.0, 1.0);
|
|
|
|
public Color color {
|
|
|
|
get { return _color; }
|
|
|
|
set {
|
|
|
|
_color = value;
|
|
|
|
line_style.color = _color;
|
|
|
|
axis_x.color = _color;
|
|
|
|
axis_y.color = _color;
|
|
|
|
grid.color = _color;
|
|
|
|
grid.color.alpha = 0.5;
|
|
|
|
grid.line_style.color = _color;
|
|
|
|
grid.line_style.color.alpha = 0.5;
|
|
|
|
}
|
2017-08-19 00:07:04 +03:00
|
|
|
default = Color (0.0, 0.0, 0.0, 1.0);
|
2017-02-16 15:10:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
public Series () {
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|