In progress...

This commit is contained in:
Kolan Sh 2018-01-22 14:54:08 +03:00
parent 1161b6a75b
commit 857b6f38e4
1 changed files with 40 additions and 8 deletions

View File

@ -7,6 +7,10 @@ namespace CairoChart {
Chart chart; Chart chart;
public Text title; public Text title;
string _format = "%.2Lf";
string _date_format = "%Y.%m.%d";
string _time_format = "%H:%M:%S";
int _dsec_signs = 2; // 2 signs = centiseconds
/** /**
* ``Axis`` range/limits. * ``Axis`` range/limits.
@ -57,17 +61,31 @@ namespace CairoChart {
* ``Axis`` position. * ``Axis`` position.
*/ */
public enum Position { public enum Position {
/**
* Bottom/Left ``Axis``.
*/
LOW = 0, LOW = 0,
/**
* Top/Right ``Axis``.
*/
HIGH = 1, HIGH = 1,
/**
* 2 ``Axes``.
*/
BOTH = 2 BOTH = 2
} }
/**
* Position.
*/
public Position position = Position.LOW; public Position position = Position.LOW;
string _format = "%.2Lf"; /**
string _date_format = "%Y.%m.%d"; * Float128 numbers print string format.
string _time_format = "%H:%M:%S"; */
int _dsec_signs = 2; // 2 signs = centiseconds public virtual string format {
public string format {
get { return _format; } get { return _format; }
set { set {
// TODO: check format // TODO: check format
@ -75,7 +93,11 @@ namespace CairoChart {
} }
default = "%.2Lf"; default = "%.2Lf";
} }
public string date_format {
/**
* Date print string format.
*/
public virtual string date_format {
get { return _date_format; } get { return _date_format; }
set { set {
// TODO: check format // TODO: check format
@ -83,7 +105,11 @@ namespace CairoChart {
} }
default = "%Y.%m.%d"; default = "%Y.%m.%d";
} }
public string time_format {
/**
* Time print string format.
*/
public virtual string time_format {
get { return _time_format; } get { return _time_format; }
set { set {
// TODO: check format // TODO: check format
@ -91,7 +117,13 @@ namespace CairoChart {
} }
default = "%H:%M:%S"; default = "%H:%M:%S";
} }
public int dsec_signs {
/**
* Number of second's signs after point.
*
* 2 signs means centiseconds, 3 signs means milliseconds, etc...
*/
public virtual int dsec_signs {
get { return _dsec_signs; } get { return _dsec_signs; }
set { set {
// TODO: check format // TODO: check format