\Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient

A PHP class representing the gradient setting of DiagramShapeDefaultsFill.

Methods

center

The center of the radial gradient.The coordinates are relative to the shape-bounding box. For example, [0, 0] is top left and [1, 1] is bottom right.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient

Parameters

$value array

Example

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient();
$gradient->center(array());
?>

end

The end point of the linear gradient.Coordinates are relative to the shape bounding box. For example, [0, 0] is top left and [1, 1] is bottom right.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient

Parameters

$value array

Example

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient();
$gradient->end(array());
?>

radius

The radius of the radial gradient relative to the shape bounding box.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient

Parameters

$value float

Example

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient();
$gradient->radius(1);
?>

start

The start point of the linear gradient.Coordinates are relative to the shape bounding box. For example, [0, 0] is top left and [1, 1] is bottom right.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient

Parameters

$value array

Example

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient();
$gradient->start(array());
?>

addStop

Adds one or more DiagramShapeDefaultsFillGradientStop to the DiagramShapeDefaultsFillGradient.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient

Parameters

$value[, $value2, ...] \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradientStop |array

Example - using \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradientStop

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient();
$stop = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradientStop();
$color = 'value';
$stop->color($color);
$gradient->addStop($stop);
?>

Example - using array

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient();
$color = 'value';
$gradient->addStop(array('color' => $color));
?>

Example - adding more than one DiagramShapeDefaultsFillGradientStop

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient();
$first  = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradientStop();
$second = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradientStop();
$gradient->addStop($first, $second);
?>

type

The type of the gradient. The supported values are: linear or radial.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient

Parameters

$value string

Example

<?php
$gradient = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient();
$gradient->type('value');
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy