1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* JPGraph - Community Edition |
5
|
|
|
*/ |
6
|
|
|
|
7
|
|
|
namespace Amenadiel\JpGraph\Graph; |
8
|
|
|
|
9
|
|
|
use Amenadiel\JpGraph\Util; |
10
|
|
|
|
11
|
|
|
// Require ../Util/Config.php |
12
|
|
|
require_once \sprintf( |
13
|
|
|
'%s%s..%sutil%sConfigs.php', |
14
|
|
|
__DIR__, |
15
|
|
|
\DIRECTORY_SEPARATOR, |
16
|
|
|
\DIRECTORY_SEPARATOR, |
17
|
|
|
\DIRECTORY_SEPARATOR |
18
|
|
|
); |
19
|
|
|
|
20
|
|
|
class Configs extends Util\Configs |
21
|
|
|
{ |
22
|
|
|
const POLAR_360 = 1; |
23
|
|
|
const POLAR_180 = 2; |
24
|
|
|
const DSUTILS_MONTH = 1; // Major and minor ticks on a monthly basis |
25
|
|
|
const DSUTILS_MONTH1 = 1; // Major and minor ticks on a monthly basis |
26
|
|
|
const DSUTILS_MONTH2 = 2; // Major ticks on a bi-monthly basis |
27
|
|
|
const DSUTILS_MONTH3 = 3; // Major icks on a tri-monthly basis |
28
|
|
|
const DSUTILS_MONTH6 = 4; // Major on a six-monthly basis |
29
|
|
|
const DSUTILS_WEEK1 = 5; // Major ticks on a weekly basis |
30
|
|
|
const DSUTILS_WEEK2 = 6; // Major ticks on a bi-weekly basis |
31
|
|
|
const DSUTILS_WEEK4 = 7; // Major ticks on a quod-weekly basis |
32
|
|
|
const DSUTILS_DAY1 = 8; // Major ticks on a daily basis |
33
|
|
|
const DSUTILS_DAY2 = 9; // Major ticks on a bi-daily basis |
34
|
|
|
const DSUTILS_DAY4 = 10; // Major ticks on a qoud-daily basis |
35
|
|
|
const DSUTILS_YEAR1 = 11; // Major ticks on a yearly basis |
36
|
|
|
const DSUTILS_YEAR2 = 12; // Major ticks on a bi-yearly basis |
37
|
|
|
const DSUTILS_YEAR5 = 13; // Major ticks on a five-yearly basis |
38
|
|
|
// Configs for types of static bands in plot area |
39
|
|
|
const _JPG_DEBUG = false; |
40
|
|
|
const BAND_RDIAG = 1; // Right diagonal lines |
41
|
|
|
const BAND_LDIAG = 2; // Left diagonal lines |
42
|
|
|
const BAND_SOLID = 3; // Solid one color |
43
|
|
|
const BAND_VLINE = 4; // Vertical lines |
44
|
|
|
const BAND_HLINE = 5; // Horizontal lines |
45
|
|
|
const BAND_3DPLANE = 6; // "3D" Plane |
46
|
|
|
const BAND_HVCROSS = 7; // Vertical/Hor crosses |
47
|
|
|
const BAND_DIAGCROSS = 8; // Diagonal crosses |
48
|
|
|
|
49
|
|
|
// Style for background gradient fills |
50
|
|
|
const BGRAD_FRAME = 1; |
51
|
|
|
const BGRAD_MARGIN = 2; |
52
|
|
|
const BGRAD_PLOT = 3; |
53
|
|
|
|
54
|
|
|
// Format for background images |
55
|
|
|
const BGIMG_FILLPLOT = 1; |
56
|
|
|
const BGIMG_FILLFRAME = 2; |
57
|
|
|
const BGIMG_COPY = 3; |
58
|
|
|
const BGIMG_CENTER = 4; |
59
|
|
|
const BGIMG_FREE = 5; |
60
|
|
|
// Activity types for use with utility method CreateSimple() |
61
|
|
|
const ACTYPE_NORMAL = 0; |
62
|
|
|
const ACTYPE_GROUP = 1; |
63
|
|
|
const ACTYPE_MILESTONE = 2; |
64
|
|
|
|
65
|
|
|
const ACTINFO_3D = 1; |
66
|
|
|
const ACTINFO_2D = 0; |
67
|
|
|
// Axis styles for scientific style axis |
68
|
|
|
const AXSTYLE_SIMPLE = 1; |
69
|
|
|
const AXSTYLE_BOXIN = 2; |
70
|
|
|
const AXSTYLE_BOXOUT = 3; |
71
|
|
|
const AXSTYLE_YBOXIN = 4; |
72
|
|
|
const AXSTYLE_YBOXOUT = 5; |
73
|
|
|
// Depth of objects |
74
|
|
|
const DEPTH_BACK = 0; |
75
|
|
|
const DEPTH_FRONT = 1; |
76
|
|
|
|
77
|
|
|
// TTF Font styles |
78
|
|
|
const FS_NORMAL = 9001; |
79
|
|
|
const FS_BOLD = 9002; |
80
|
|
|
const FS_ITALIC = 9003; |
81
|
|
|
const FS_BOLDIT = 9004; |
82
|
|
|
const FS_BOLDITALIC = 9004; |
83
|
|
|
|
84
|
|
|
// Tick density |
85
|
|
|
const TICKD_DENSE = 1; |
86
|
|
|
const TICKD_NORMAL = 2; |
87
|
|
|
const TICKD_SPARSE = 3; |
88
|
|
|
const TICKD_VERYSPARSE = 4; |
89
|
|
|
|
90
|
|
|
// Side for ticks and labels. |
91
|
|
|
const SIDE_LEFT = -1; |
92
|
|
|
const SIDE_RIGHT = 1; |
93
|
|
|
// Style for title backgrounds |
94
|
|
|
const TITLEBKG_STYLE1 = 1; |
95
|
|
|
const TITLEBKG_STYLE2 = 2; |
96
|
|
|
const TITLEBKG_STYLE3 = 3; |
97
|
|
|
const TITLEBKG_FRAME_NONE = 0; |
98
|
|
|
const TITLEBKG_FRAME_FULL = 1; |
99
|
|
|
const TITLEBKG_FRAME_BOTTOM = 2; |
100
|
|
|
const TITLEBKG_FRAME_BEVEL = 3; |
101
|
|
|
const TITLEBKG_FILLSTYLE_HSTRIPED = 1; |
102
|
|
|
const TITLEBKG_FILLSTYLE_VSTRIPED = 2; |
103
|
|
|
const TITLEBKG_FILLSTYLE_SOLID = 3; |
104
|
|
|
} |
105
|
|
|
|