-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathport.php
97 lines (76 loc) · 2.47 KB
/
port.php
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
// Graphics port
//-------------------------------------------------------------------------------------------------
class Port
{
var $output = '';
var $width = 0;
var $height = 0;
var $element_id = 0;
var $font_size = 10;
//----------------------------------------------------------------------------------------------
function __construct($element_id, $width, $height, $font_size=10, $centre=false)
{
$this->element_id = $element_id;
$this->width = $width;
$this->height = $height;
$this->font_size = $font_size;
$this->StartPicture($centre);
}
//----------------------------------------------------------------------------------------------
function Circle($pt, $r, $action = '')
{
}
//----------------------------------------------------------------------------------------------
function DrawCircleArc($p0, $p1, $radius, $large_arc_flag = false)
{
}
//----------------------------------------------------------------------------------------------
function DrawLine($p0, $p1)
{
}
//----------------------------------------------------------------------------------------------
function DrawText ($pt, $text, $action = '')
{
}
//----------------------------------------------------------------------------------------------
function DrawRotatedText ($pt, $text, $action = '', $align = 'left', $angle = 0)
{
}
//----------------------------------------------------------------------------------------------
function GetOutput()
{
$this->EndPicture();
return $this->output;
}
//----------------------------------------------------------------------------------------------
function StartPicture ()
{
}
//----------------------------------------------------------------------------------------------
function EndPicture ()
{
}
//----------------------------------------------------------------------------------------------
function OpenLink($link)
{
}
//----------------------------------------------------------------------------------------------
function CloseLink()
{
}
//----------------------------------------------------------------------------------------------
function StartGroup($group_name, $visible=true)
{
}
//----------------------------------------------------------------------------------------------
function EndGroup()
{
}
//----------------------------------------------------------------------------------------------
function Custom($text)
{
$this->output .= $text;
}
}
?>