OK In progress...

This commit is contained in:
Kolan Sh 2018-01-22 12:25:17 +03:00
parent b382247757
commit 6adc0a57b6
2 changed files with 10 additions and 10 deletions

View File

@ -28,7 +28,7 @@ namespace CairoChart {
/** /**
* ``Area`` width. * ``Area`` width.
*/ */
public double width { public virtual double width {
get { get {
return x1 - x0; return x1 - x0;
} }
@ -40,7 +40,7 @@ namespace CairoChart {
/** /**
* ``Area`` height. * ``Area`` height.
*/ */
public double height { public virtual double height {
get { get {
return y1 - y0; return y1 - y0;
} }
@ -107,7 +107,7 @@ namespace CairoChart {
/** /**
* Gets a copy of the ``Chart``. * Gets a copy of the ``Chart``.
*/ */
public Area copy () { public virtual Area copy () {
return new Area.with_area(this); return new Area.with_area(this);
} }
} }

View File

@ -58,17 +58,17 @@ namespace CairoChart {
/** /**
* Index of the 1'st shown series in a zoomed area. * Index of the 1'st shown series in a zoomed area.
*/ */
public int zoom_1st_idx { get; protected set; default = 0; } public virtual int zoom_1st_idx { get; protected set; default = 0; }
/** /**
* Joint/common X axes or not. * Joint/common X axes or not.
*/ */
public bool joint_x { get; protected set; default = false; } public virtual bool joint_x { get; protected set; default = false; }
/** /**
* Joint/common Y axes or not. * Joint/common Y axes or not.
*/ */
public bool joint_y { get; protected set; default = false; } public virtual bool joint_y { get; protected set; default = false; }
/** /**
* Joint/common {@link Axis} ``Color``. * Joint/common {@link Axis} ``Color``.
@ -83,13 +83,13 @@ namespace CairoChart {
/** /**
* ``Chart`` cursors. * ``Chart`` cursors.
*/ */
public Cursors cursors { get; protected set; default = null; } public virtual Cursors cursors { get; protected set; default = null; }
/** /**
* Set paint color for further drawing. * Set paint color for further drawing.
*/ */
public Color color { public virtual Color color {
private get { return Color(); } protected get { return Color(); }
set { ctx.set_source_rgba (value.red, value.green, value.blue, value.alpha); } set { ctx.set_source_rgba (value.red, value.green, value.blue, value.alpha); }
default = Color(); default = Color();
} }
@ -106,7 +106,7 @@ namespace CairoChart {
/** /**
* Gets a copy of the ``Chart``. * Gets a copy of the ``Chart``.
*/ */
public Chart copy () { public virtual Chart copy () {
var chart = new Chart (); var chart = new Chart ();
chart.area = this.area.copy(); chart.area = this.area.copy();
chart.bg_color = this.bg_color; chart.bg_color = this.bg_color;