Jaguar - PHP Graphic Library
  • Namespace
  • Class
  • Tree

Namespaces

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

Classes

  • Brush
  • DashedlineStyle
  • FillStyle
  • ThicklineStyle

Class Brush

Jaguar\Drawable\Style\Brush implements Jaguar\Drawable\StyleInterface
Namespace: Jaguar\Drawable\Style
Located at Jaguar/Drawable/Style/Brush.php

Methods summary

public
# __construct( Jaguar\CanvasInterface $canvas, integer $show = 1, integer $hide = 0 )

construct new brush

construct new brush

Parameters

$canvas
Jaguar\CanvasInterface
$canvas
$show
integer
$show
$hide
integer
$hide

Throws

InvalidArgumentException
public Jaguar\Drawable\Style\Brush
# setShowTime( integer $time )

Set show time

Set show time

Parameters

$time
integer
$time

Returns

Jaguar\Drawable\Style\Brush

Throws

InvalidArgumentException
if the time <=0
public integer
# getShowTime( )

Get show time

Get show time

Returns

integer
public Jaguar\Drawable\Style\Brush
# setHideTime( integer $time )

Set hide time

Set hide time

Parameters

$time
integer
$time

Returns

Jaguar\Drawable\Style\Brush

Throws

InvalidArgumentException
if the time <0
public integer
# getHideTime( )

Get hide time

Get hide time

Returns

integer
public Jaguar\Drawable\Style\Brush
# setInterval( integer $show, integer $hide )

Set show hide interval

Set show hide interval

Parameters

$show
integer
$show
$hide
integer
$hide

Returns

Jaguar\Drawable\Style\Brush

Throws

InvalidArgumentException
public
# apply( Jaguar\CanvasInterface $canvas, Jaguar\Drawable\AbstractStyledDrawable $drawable )

Apply the style on the drawable object

Apply the style on the drawable object

Parameters

$canvas
Jaguar\CanvasInterface
$canvas
$drawable
Jaguar\Drawable\AbstractStyledDrawable
$drawable

Throws

Jaguar\Exception\DrawableException

Implementation of

Jaguar\Drawable\StyleInterface::apply()
public
# __clone( )

Disable Brush Clone

Disable Brush Clone

Throws

RuntimeException

Magic methods summary

Jaguar - PHP Graphic Library API documentation generated by ApiGen 2.8.0