Parent Directory
|
Revision Log
Revision 1.2 - (view) (download)
| 1 : | dservos | 1.1 | <?php |
| 2 : | dservos | 1.2 | class selector { |
| 3 : | public $param; | ||
| 4 : | public $options; | ||
| 5 : | public $active; | ||
| 6 : | |||
| 7 : | public function __construct($param, array $options, $active = null) { | ||
| 8 : | $this->param = $param; | ||
| 9 : | $this->options = $options; | ||
| 10 : | $this->active = $active; | ||
| 11 : | } | ||
| 12 : | } | ||
| 13 : | dservos | 1.1 | |
| 14 : | class edge { | ||
| 15 : | public $sortby; | ||
| 16 : | public $groupby; | ||
| 17 : | |||
| 18 : | public function __construct($sortby = null, $groupby = null) { | ||
| 19 : | $this->sortby = $sortby; | ||
| 20 : | $this->groupby = $groupby; | ||
| 21 : | } | ||
| 22 : | } | ||
| 23 : | |||
| 24 : | class encoder { | ||
| 25 : | const ENCODER_DEFUALT = 1; | ||
| 26 : | const ENCODER_COLOR = 1; | ||
| 27 : | const ENCODER_SHAPE = 2; | ||
| 28 : | const ENCODER_SIZE = 3; | ||
| 29 : | |||
| 30 : | private static $counter = 0; | ||
| 31 : | |||
| 32 : | public $id; | ||
| 33 : | |||
| 34 : | public $type; | ||
| 35 : | |||
| 36 : | public $settings; | ||
| 37 : | |||
| 38 : | public $datafield; | ||
| 39 : | |||
| 40 : | public function __construct($type, $datafield, array $settings = null) { | ||
| 41 : | $this->type = $type; | ||
| 42 : | $this->settings = $settings; | ||
| 43 : | $this->datafield = $datafield; | ||
| 44 : | $this->id = self::$counter++; | ||
| 45 : | } | ||
| 46 : | } | ||
| 47 : | |||
| 48 : | class legend { | ||
| 49 : | public $encoder; | ||
| 50 : | |||
| 51 : | dservos | 1.2 | public $show; |
| 52 : | |||
| 53 : | public function __construct($encoder, $show = null) { | ||
| 54 : | dservos | 1.1 | $this->encoder = $encoder; |
| 55 : | dservos | 1.2 | $this->show = $show; |
| 56 : | dservos | 1.1 | } |
| 57 : | } | ||
| 58 : | |||
| 59 : | abstract class visualization { | ||
| 60 : | |||
| 61 : | const LAYOUT_DEFAULT = 1; | ||
| 62 : | const LAYOUT_AXIS = 1; | ||
| 63 : | const LAYOUT_CIRCLE = 2; | ||
| 64 : | const LAYOUT_DENDROGRAM = 3; | ||
| 65 : | const LAYOUT_FORCEDIRECTED = 4; | ||
| 66 : | const LAYOUT_INDENTEDTREE = 5; | ||
| 67 : | const LAYOUT_NODELINKTREE = 6; | ||
| 68 : | const LAYOUT_PIE = 7; | ||
| 69 : | const LAYOUT_RADIALTREE = 8; | ||
| 70 : | const LAYOUT_RANDOM = 9; | ||
| 71 : | const LAYOUT_STACKEDAREA = 10; | ||
| 72 : | const LAYOUT_TREEMAP = 11; | ||
| 73 : | |||
| 74 : | const SHAPE_BEZIER = 1; | ||
| 75 : | const SHAPE_BLOCK = -1; | ||
| 76 : | const SHAPE_CARDINAL = 2; | ||
| 77 : | const SHAPE_HORIZONTAL_BAR = -5; | ||
| 78 : | const SHAPE_LINE = 0; | ||
| 79 : | const SHAPE_POLYBLOB = -3; | ||
| 80 : | const SHAPE_POLYGON = -2; | ||
| 81 : | const SHAPE_VERTICAL_BAR = -4; | ||
| 82 : | const SHAPE_WEDGE = -6; | ||
| 83 : | |||
| 84 : | |||
| 85 : | public $name; | ||
| 86 : | |||
| 87 : | public $layout = self::LAYOUT_DEFAULT; | ||
| 88 : | |||
| 89 : | public $layoutsettings = null; | ||
| 90 : | |||
| 91 : | dservos | 1.2 | public $usegroups = false; |
| 92 : | |||
| 93 : | dservos | 1.1 | public $edges = null; |
| 94 : | |||
| 95 : | public $nodeshape = null; | ||
| 96 : | |||
| 97 : | public $edgeshape = null; | ||
| 98 : | |||
| 99 : | dservos | 1.2 | public $selectors = null; |
| 100 : | |||
| 101 : | dservos | 1.1 | public $font = 'monospace'; |
| 102 : | |||
| 103 : | public $fontsize = 20; | ||
| 104 : | |||
| 105 : | public $legends = null; | ||
| 106 : | |||
| 107 : | public $xaxis; | ||
| 108 : | |||
| 109 : | public $yaxis; | ||
| 110 : | |||
| 111 : | public $xaxislabelformat; | ||
| 112 : | |||
| 113 : | public $yaxislabelformat; | ||
| 114 : | |||
| 115 : | public $xaxismin; | ||
| 116 : | |||
| 117 : | public $xaxismax; | ||
| 118 : | |||
| 119 : | public $yaxismin; | ||
| 120 : | |||
| 121 : | public $yaxismax; | ||
| 122 : | |||
| 123 : | public $xaxislabel; | ||
| 124 : | |||
| 125 : | public $yaxislabel; | ||
| 126 : | |||
| 127 : | public $yaxisyoffset; | ||
| 128 : | |||
| 129 : | public $yaxisxoffset; | ||
| 130 : | |||
| 131 : | public $xaxisyoffset; | ||
| 132 : | |||
| 133 : | public $xaxisxoffset; | ||
| 134 : | |||
| 135 : | public $title; | ||
| 136 : | |||
| 137 : | public $capabilities = null; | ||
| 138 : | |||
| 139 : | public $encoders = null; | ||
| 140 : | |||
| 141 : | public $backgroundcolor = 'ffffff'; | ||
| 142 : | |||
| 143 : | public $width = 800; | ||
| 144 : | |||
| 145 : | public $height = 600; | ||
| 146 : | |||
| 147 : | public $framerate = 30; | ||
| 148 : | |||
| 149 : | public $quality = "high"; | ||
| 150 : | |||
| 151 : | public $popupbgcolor = '7777ff'; | ||
| 152 : | |||
| 153 : | public $popupbgalpha = 0.60; | ||
| 154 : | |||
| 155 : | public $popuplinecolor = '0000ff'; | ||
| 156 : | |||
| 157 : | public $popuplinealpha = 0.3; | ||
| 158 : | |||
| 159 : | public $popuplinesize = 3; | ||
| 160 : | |||
| 161 : | public $popupfont = 'monospace'; | ||
| 162 : | |||
| 163 : | public $popupfontsize = 12; | ||
| 164 : | |||
| 165 : | public $buttonbgcolor = '9999FF'; | ||
| 166 : | |||
| 167 : | public $buttonbgalpha = 0.6; | ||
| 168 : | |||
| 169 : | public $buttonfont = 'monospace'; | ||
| 170 : | |||
| 171 : | public $buttonfontsize = 12; | ||
| 172 : | |||
| 173 : | public $buttonlinesize = 1; | ||
| 174 : | |||
| 175 : | public $buttonlinecolor = '4444FF'; | ||
| 176 : | |||
| 177 : | public $buttonlinealpha = 0.3; | ||
| 178 : | |||
| 179 : | public function __construct($name) { | ||
| 180 : | $this->name = $name; | ||
| 181 : | } | ||
| 182 : | |||
| 183 : | abstract public function report_data($visualreport); | ||
| 184 : | } | ||
| 185 : | |||
| 186 : | ?> |
| Moodle CVS Admin | ViewVC Help |
| Powered by ViewVC 1.0.7 |