forked from academiadocodigo/TBGWebCharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Chart.Easy.PieCSS.pas
78 lines (62 loc) · 1.58 KB
/
Chart.Easy.PieCSS.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
unit Chart.Easy.PieCSS;
interface
uses
Interfaces;
type
TChartEasyPieCSS = class (TInterfacedObject, iModelCss)
private
public
constructor Create;
destructor Destroy; override;
class function New : iModelCss;
function PackCSS : String;
function CDN(Value : Boolean) : iModelCSS;
function BackgroundColor ( Value : String ) : iModelCSS;
function FontColor ( Value : String ) : iModelCSS;
function BorderColor ( Value : String ) : iModelCSS;
end;
implementation
{ TChartEasyPieCSS }
function TChartEasyPieCSS.BackgroundColor(Value: String): iModelCSS;
begin
Result := Self;
end;
function TChartEasyPieCSS.BorderColor(Value: String): iModelCSS;
begin
Result := Self;
end;
function TChartEasyPieCSS.CDN(Value: Boolean): iModelCSS;
begin
Result := SElf;
end;
constructor TChartEasyPieCSS.Create;
begin
end;
destructor TChartEasyPieCSS.Destroy;
begin
inherited;
end;
function TChartEasyPieCSS.FontColor(Value: String): iModelCSS;
begin
Result := Self;
end;
class function TChartEasyPieCSS.New: iModelCss;
begin
Result := Self.Create;
end;
function TChartEasyPieCSS.PackCSS: String;
begin
Result := Result + '<style>'+#13;
Result := Result + '.easyPieChart {';
Result := Result + 'position: relative;';
Result := Result + 'text-align: center;';
Result := Result + '}';
Result := Result + '';
Result := Result + '.easyPieChart canvas {';
Result := Result + 'position: absolute;';
Result := Result + 'top: 0;';
Result := Result + 'left: 0;';
Result := Result + '}';
Result := Result + '</style>'+#13;
end;
end.