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 DashedlineStyle

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

Methods summary

public
# __construct( integer $fct = 1, integer $sct = 1, Jaguar\Color\ColorInterface $color = null )

construct new dashedline style

construct new dashedline style

Parameters

$fct
integer
$fct the first color show time
$sct
integer
$sct the second color show time
$color
Jaguar\Color\ColorInterface
$color the second color

Throws

InvalidArgumentException
if the time <=0
public Jaguar\Drawable\Style\DashedlineStyle
# setSecondColor( Jaguar\Color\ColorInterface $color )

Set second color to use when drawing the dashed line , where by default the colo is transparent

Set second color to use when drawing the dashed line , where by default the colo is transparent

Parameters

$color
Jaguar\Color\ColorInterface
$color

Returns

Jaguar\Drawable\Style\DashedlineStyle
public Jaguar\Color\ColorInterface
# getSecondColor( )

Get the second color

Get the second color

Returns

Jaguar\Color\ColorInterface
public Jaguar\Drawable\Style\DashedlineStyle
# setFirstColorShowTime( integer $time )

Set the first color show time

Set the first color show time

the color show time is a number which indicates how many time to show the color before starting by showing the second color .

for instance : 5 menas will draw five pixels with the first color (the default drawable color) then draw n pixels using the second color

Parameters

$time
integer
$time

Returns

Jaguar\Drawable\Style\DashedlineStyle

Throws

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

Get the first color show time

Get the first color show time

Returns

integer
public Jaguar\Drawable\Style\DashedlineStyle
# setSecondColorShowTime( integer $time )

Set the second color show time

Set the second color show time

Parameters

$time
integer
$time

Returns

Jaguar\Drawable\Style\DashedlineStyle

Throws

InvalidArgumentException
if the time <=0

See

Jaguar\Drawable\Style\DashedlineStyle::setFirstColorShowTime()
public integer
# getSecondColorShowTime( )

Get the second color show time

Get the second color show time

Returns

integer
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( )

clone the style

clone the style

Magic methods summary

Jaguar - PHP Graphic Library API documentation generated by ApiGen 2.8.0