Jaguar - PHP Graphic Library
  • Namespace
  • Class
  • Tree

Namespaces

  • Jaguar
    • Action
      • Blur
      • Color
      • Pixelate
      • Preset
    • Color
    • Drawable
      • Border
      • Style
      • Text
    • Exception
    • Factory
    • Format
    • Gradient

Classes

  • AbstractDrawable
  • AbstractStyledDrawable
  • Arc
  • Border
  • FilledDrawable
  • Line
  • Pixel
  • Polygon
  • Rectangle
  • Text

Interfaces

  • DrawableInterface
  • StyleInterface

Class AbstractStyledDrawable

Jaguar\Drawable\AbstractDrawable implements Jaguar\Drawable\DrawableInterface
Extended by Jaguar\Drawable\AbstractStyledDrawable

Direct known subclasses

Jaguar\Drawable\Border, Jaguar\Drawable\FilledDrawable, Jaguar\Drawable\Line, Jaguar\Drawable\Pixel

Indirect known subclasses

Jaguar\Drawable\Arc, Jaguar\Drawable\Polygon, Jaguar\Drawable\Rectangle

Abstract
Namespace: Jaguar\Drawable
Located at Jaguar/Drawable/AbstractStyledDrawable.php

Methods summary

public
# __construct( Jaguar\Color\ColorInterface $color = null )

construct new drawable object

construct new drawable object

Parameters

$color
Jaguar\Color\ColorInterface
$color

Overrides

Jaguar\Drawable\AbstractDrawable::__construct
public
# setLineThickness( mixed $thickness )
public
# getLineThickness( )
public
# equals( mixed $other )

Check that the current object which implements this interfcae is equal to another object from the same type

Check that the current object which implements this interfcae is equal to another object from the same type

Parameters

$other
mixed
$other

Throws

InvalidArgumentException
if the passed param type is invalid

Overrides

Jaguar\Drawable\AbstractDrawable::equals
final public
# draw( Jaguar\CanvasInterface $canvas, Jaguar\Drawable\StyleInterface $style = null )

Draw the drawable object on the given canvas using the given style

Draw the drawable object on the given canvas using the given style

Parameters

$canvas
Jaguar\CanvasInterface
$canvas
$style

Throws

Jaguar\Exception\CanvasEmptyException
Jaguar\Exception\DrawableException

Methods inherited from Jaguar\Drawable\AbstractDrawable

__clone(), __toString(), getColor(), setColor()

Magic methods summary

Jaguar - PHP Graphic Library API documentation generated by ApiGen 2.8.0