예제 #1
0
 protected function getValuesArea(Boundary $b)
 {
     $dy = $this->getD()->width;
     $dx = $this->getD()->height;
     $h = $this->axis['font_x']->getTextExtent($this->maxleg)->height;
     $dbottom = $b->bottom() - ($h < $dx * 4 ? $dx * 4 : $h);
     $dleft = $b->left() + $this->axis['font_y']->getTextExtent($this->max)->width + $dy * 2;
     $dtop = $b->top() + $this->depth;
     $dright = $b->right() + $this->depth;
     return new Boundary($dleft, $dtop, $dright, $dbottom);
 }