/**
  * @expectedException \Jaguar\Exception\DrawableException
  */
 public function testApplyThrowDrawableException()
 {
     $brush = new Brush(new \Jaguar\Tests\Mock\CanvasMock());
     $brush->apply($this->getCanvas(), $this->getDrawable());
 }
 /**
  * {@inheritdoc}
  */
 public function apply(CanvasInterface $canvas, AbstractStyledDrawable $drawable)
 {
     $this->canvas = new Canvas(new Dimension($this->getThickness(), $this->getThickness()));
     $this->canvas->fill($drawable->getColor());
     $style = new Brush($this->canvas, $this->show, $this->hide);
     return $style->apply($canvas, $drawable);
 }