/** * Returns the grid points as an array of GridPoints */ public function GetGridPoints($min_space, $start) { $points = parent::GetGridPoints($min_space, $start); $new_points = array(); $z = $this->Zero(); foreach ($points as $p) { $new_points[] = new GridPoint($p->position + $z, $p->text, $p->value); if ($p->value != 0) { $new_points[] = new GridPoint(2 * $start + $z - $p->position, $p->text, $p->value); } } usort($new_points, $this->direction < 0 ? 'gridpoint_rsort' : 'gridpoint_sort'); return $new_points; }