From 18968bd3a99137c8095d085f78e789cf5a9697e6 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Mon, 22 Jan 2018 16:22:47 +0300 Subject: [PATCH] OK In progress... --- src/Legend.vala | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/src/Legend.vala b/src/Legend.vala index cd0f963..7a218ca 100644 --- a/src/Legend.vala +++ b/src/Legend.vala @@ -1,16 +1,40 @@ namespace CairoChart { + /** + * {@link Chart} ``Legend``. + */ public class Legend { + /** + * ``Legend`` position. + */ public enum Position { - TOP = 0, // default + /** + * Top position. + */ + TOP = 0, + + /** + * Left position. + */ LEFT, + + /** + * Right position. + */ RIGHT, + + /** + * Bottom position. + */ BOTTOM } + /** + * Position. + */ public Position position = Position.TOP; - public Font font = new Font(); + public Color bg_color = Color(1, 1, 1); public LineStyle border_style = LineStyle (); public double spacing = 5; @@ -24,7 +48,6 @@ namespace CairoChart { public virtual Legend copy () { var legend = new Legend (); legend.position = this.position; - legend.font = this.font.copy(); legend.bg_color = this.bg_color; legend.spacing = this.spacing; legend.height = this.height;