2013-09-09 13:55:29 +02:00
|
|
|
<?php
|
2016-02-08 15:41:00 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013 Icinga Development Team | GPLv2+ */
|
2013-09-09 13:55:29 +02:00
|
|
|
|
|
|
|
namespace Icinga\Chart\Primitive;
|
|
|
|
|
2014-07-09 18:04:03 +02:00
|
|
|
use DOMElement;
|
|
|
|
use Icinga\Chart\Render\RenderContext;
|
2013-09-09 13:55:29 +02:00
|
|
|
|
2013-09-21 17:35:18 +02:00
|
|
|
/**
|
|
|
|
* Drawable element for creating svg out of components
|
|
|
|
*/
|
|
|
|
interface Drawable
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Create the SVG representation from this Drawable
|
|
|
|
*
|
2013-09-25 16:32:28 +02:00
|
|
|
* @param RenderContext $ctx The context to use for rendering
|
2013-09-21 17:35:18 +02:00
|
|
|
*
|
2013-09-25 16:32:28 +02:00
|
|
|
* @return DOMElement The SVG Element
|
2013-09-21 17:35:18 +02:00
|
|
|
*/
|
|
|
|
public function toSvg(RenderContext $ctx);
|
|
|
|
}
|