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 Arc

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

Methods summary

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

construct new arc

construct new arc

Parameters

$dimension
Jaguar\Dimension
$dimension
$center
Jaguar\Coordinate
$center
$color
Jaguar\Color\ColorInterface
$color

Overrides

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

Set dimension

Set dimension

Parameters

$dimension
Jaguar\Dimension
$dimension

Returns

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

Get dimension

Get dimension

Returns

Jaguar\Dimension
public Jaguar\Drawable\Arc
# setCenter( Jaguar\Coordinate $coordinate )

Set center

Set center

Parameters

$coordinate
Jaguar\Coordinate
$coordinate

Returns

Jaguar\Drawable\Arc
public Jaguar\Coordinate
# getCenter( )

Get center

Get center

Returns

Jaguar\Coordinate
public Jaguar\Drawable\Arc
# setStartDegree( integer $degree )

Set Start Degree

Set Start Degree

Parameters

$degree
integer
$degree

Returns

Jaguar\Drawable\Arc
public integer
# getStartDegree( )

Get Start Degree

Get Start Degree

Returns

integer
public Jaguar\Drawable\Arc
# setEndDegree( integer $degree )

Set End Degree

Set End Degree

Parameters

$degree
integer
$degree

Returns

Jaguar\Drawable\Arc
public integer
# getEndDegree( )

get End Degree

get End Degree

Returns

integer
public Jaguar\Drawable\Arc
# setDegree( integer $start, integer $end )

Set Start And End Degree

Set Start And End Degree

Parameters

$start
integer
$start start degree
$end
integer
$end end degree

Returns

Jaguar\Drawable\Arc
public Jaguar\Drawable\Arc
# connectAngles( boolean $boolean )

Connect Angles

Connect Angles

Connet the starting and ending angles with a straight line

Parameters

$boolean
boolean
$boolean True To Connect Angles togther

Returns

Jaguar\Drawable\Arc
public boolean
# isAnglesConnected( )

Check If Angles are connected

Check If Angles are connected

Returns

boolean
public Jaguar\Drawable\Arc
# setRounded( boolean $boolean )

Set Roundded Edge

Set Roundded Edge

Parameters

$boolean
boolean
$boolean true fo rounded edge

Returns

Jaguar\Drawable\Arc
public boolean
# isRounded( )

Get is rounded

Get is rounded

Returns

boolean
public Jaguar\Drawable\Arc
# connectAnglesToCenter( boolean $boolean )

Connect Angles To The Center Of Arc

Connect Angles To The Center Of Arc

Parameters

$boolean
boolean
$boolean true indicates that the beginning and ending angles should be connected to the center

Returns

Jaguar\Drawable\Arc
public boolean
# isAnglesConnectedToCenter( )

Check if angles are connected to center

Check if angles are connected to center

Returns

boolean
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 of the current arc Object

Returns a string representation of the current arc Object

Returns

string
public
# __clone( )

Clone Arc

Clone Arc

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