OK In progress...
This commit is contained in:
parent
96d275c339
commit
18968bd3a9
|
@ -1,16 +1,40 @@
|
||||||
namespace CairoChart {
|
namespace CairoChart {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link Chart} ``Legend``.
|
||||||
|
*/
|
||||||
public class Legend {
|
public class Legend {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ``Legend`` position.
|
||||||
|
*/
|
||||||
public enum Position {
|
public enum Position {
|
||||||
TOP = 0, // default
|
/**
|
||||||
|
* Top position.
|
||||||
|
*/
|
||||||
|
TOP = 0,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Left position.
|
||||||
|
*/
|
||||||
LEFT,
|
LEFT,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Right position.
|
||||||
|
*/
|
||||||
RIGHT,
|
RIGHT,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Bottom position.
|
||||||
|
*/
|
||||||
BOTTOM
|
BOTTOM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Position.
|
||||||
|
*/
|
||||||
public Position position = Position.TOP;
|
public Position position = Position.TOP;
|
||||||
public Font font = new Font();
|
|
||||||
public Color bg_color = Color(1, 1, 1);
|
public Color bg_color = Color(1, 1, 1);
|
||||||
public LineStyle border_style = LineStyle ();
|
public LineStyle border_style = LineStyle ();
|
||||||
public double spacing = 5;
|
public double spacing = 5;
|
||||||
|
@ -24,7 +48,6 @@ namespace CairoChart {
|
||||||
public virtual Legend copy () {
|
public virtual Legend copy () {
|
||||||
var legend = new Legend ();
|
var legend = new Legend ();
|
||||||
legend.position = this.position;
|
legend.position = this.position;
|
||||||
legend.font = this.font.copy();
|
|
||||||
legend.bg_color = this.bg_color;
|
legend.bg_color = this.bg_color;
|
||||||
legend.spacing = this.spacing;
|
legend.spacing = this.spacing;
|
||||||
legend.height = this.height;
|
legend.height = this.height;
|
||||||
|
|
Loading…
Reference in New Issue