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 Rectangle

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

Methods summary

public
# __construct( Jaguar\Dimension $size = null, Jaguar\Coordinate $start = null, Jaguar\Color\ColorInterface $color = null )

construct new rectangle

construct new rectangle

Parameters

$size
Jaguar\Dimension
$size
$start
Jaguar\Coordinate
$start
$color
Jaguar\Drawable\ColorInterface
$color

Overrides

Jaguar\Drawable\AbstractStyledDrawable::__construct
public Jaguar\Drawable\Rectangle
# setDimension( Jaguar\Dimension $dimension )

Set dimension

Set dimension

Parameters

$dimension
Jaguar\Dimension
$dimension

Returns

Jaguar\Drawable\Rectangle
public Jaguar\Dimension
# getDimension( )

Get dimension

Get dimension

Returns

Jaguar\Dimension
public Jaguar\Drawable\Rectangle
# setStart( Jaguar\Coordinate $coordinate )

Set Start Coordinate

Set Start Coordinate

Parameters

$coordinate
Jaguar\Coordinate
$coordinate

Returns

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

Get Start Coordinate

Get Start Coordinate

Returns

Jaguar\Coordinate
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 current rectangle object

Returns a string representation for the current rectangle object

Returns

string
public
# __clone( )

Clone Rectangle

Clone Rectangle

Overrides

Jaguar\Drawable\AbstractDrawable::__clone

Methods inherited from Jaguar\Drawable\FilledDrawable

fill(), isFilled()

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