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 Line

Jaguar\Drawable\AbstractDrawable implements Jaguar\Drawable\DrawableInterface
Extended by Jaguar\Drawable\AbstractStyledDrawable
Extended by Jaguar\Drawable\Line
Namespace: Jaguar\Drawable
Located at Jaguar/Drawable/Line.php

Methods summary

public
# __construct( Jaguar\Coordinate $sc = null, Jaguar\Coordinate $ec = null, Jaguar\Drawable\ColorInterface $color = null )

Construct new line object

Construct new line object

Parameters

$sc
Jaguar\Coordinate
$sc
$ec
Jaguar\Coordinate
$ec
$color

Overrides

Jaguar\Drawable\AbstractStyledDrawable::__construct
public Jaguar\Drawable\Line
# setStart( Jaguar\Coordinate $sc )

Set Start Coordinate

Set Start Coordinate

Parameters

$sc
Jaguar\Coordinate
$sc start coordinate

Returns

Jaguar\Drawable\Line
public Jaguar\Coordinate
# getStart( )

Get Start Coordinate

Get Start Coordinate

Returns

Jaguar\Coordinate
public Jaguar\Drawable\Line
# setEnd( Jaguar\Coordinate $ec )

Set End Coordinate

Set End Coordinate

Parameters

$ec
Jaguar\Coordinate
$ec end coordinate

Returns

Jaguar\Drawable\Line
public Jaguar\Coordinate
# getEnd( )

Get End Coordinate

Get End Coordinate

Returns

Jaguar\Coordinate
public Jaguar\Drawable\Line
# setLocation( Jaguar\Coordinate $start, Jaguar\Coordinate $end )

Set Line Start And End Coordinate

Set Line Start And End Coordinate

Parameters

$start
Jaguar\Coordinate
$start
$end
Jaguar\Coordinate
$end

Returns

Jaguar\Drawable\Line
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\AbstractStyledDrawable::equals
public string
# __toString( )

Returns a string representation for the line object

Returns a string representation for the line object

Returns

string
public
# __clone( )

Clone Line

Clone Line

Overrides

Jaguar\Drawable\AbstractDrawable::__clone

Methods inherited from Jaguar\Drawable\AbstractStyledDrawable

draw(), getLineThickness(), setLineThickness()

Methods inherited from Jaguar\Drawable\AbstractDrawable

getColor(), setColor()

Magic methods summary

Jaguar - PHP Graphic Library API documentation generated by ApiGen 2.8.0