Ejemplo n.º 1
0
 /**
  * Draw step line
  *
  * Draw a step (marker for label position) on a axis.
  * 
  * @param ezcGraphCoordinate $start Start point
  * @param ezcGraphCoordinate $end End point
  * @param ezcGraphColor $color Color of the grid line
  * @return void
  */
 public function drawStepLine(ezcGraphCoordinate $start, ezcGraphCoordinate $end, ezcGraphColor $color)
 {
     $stepPolygonCoordinates = array($this->get3dCoordinate($start, true), $this->get3dCoordinate($end, true), $this->get3dCoordinate($end, false), $this->get3dCoordinate($start, false));
     // Draw step polygon
     if ($this->options->fillAxis > 0 && $this->options->fillAxis < 1) {
         $this->driver->drawPolygon($stepPolygonCoordinates, $color->transparent($this->options->fillAxis), true);
         $this->driver->drawPolygon($stepPolygonCoordinates, $color, false);
     } else {
         $this->driver->drawPolygon($stepPolygonCoordinates, $color, !(bool) $this->options->fillAxis);
     }
 }