ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
BarConfig.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Component\Chart\Bar
;
22
23
use
ILIAS\Data\Color
;
24
28
class
BarConfig
29
{
30
protected
?
Color
$color
=
null
;
31
protected
?
float
$size
=
null
;
32
33
public
function
__construct
()
34
{
35
}
36
37
public
function
withColor
(
Color
$color): self
38
{
39
$clone = clone $this;
40
$clone->color =
$color
;
41
return
$clone;
42
}
43
44
public
function
getColor
(): ?
Color
45
{
46
return
$this->color
;
47
}
48
55
public
function
withRelativeWidth
(
float
$relative_width): self
56
{
57
$clone = clone $this;
58
$clone->size = $relative_width;
59
return
$clone;
60
}
61
62
public
function
getRelativeWidth
(): ?float
63
{
64
return
$this->size
;
65
}
66
}
ILIAS\UI\Component\Chart\Bar\BarConfig\withRelativeWidth
withRelativeWidth(float $relative_width)
Set a relative width for the bar.
Definition:
BarConfig.php:55
ILIAS\Data\Color
Color expresses a certain color by giving the mixing ratio in the RGB color space.
Definition:
Color.php:29
ILIAS\UI\Component\Chart\Bar\BarConfig\getColor
getColor()
Definition:
BarConfig.php:44
ILIAS\UI\Component\Chart\Bar
Definition:
Axis.php:21
ILIAS\UI\Component\Chart\Bar\BarConfig\$color
Color $color
Definition:
BarConfig.php:30
ILIAS\UI\Component\Chart\Bar\BarConfig\__construct
__construct()
Definition:
BarConfig.php:33
ILIAS\UI\Component\Chart\Bar\BarConfig
Definition:
BarConfig.php:28
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ILIAS\Data\Color
Definition:
Factory.php:21
ILIAS\UI\Component\Chart\Bar\BarConfig\withColor
withColor(Color $color)
Definition:
BarConfig.php:37
ILIAS\UI\Component\Chart\Bar\BarConfig\getRelativeWidth
getRelativeWidth()
Definition:
BarConfig.php:62
ILIAS\UI\Component\Chart\Bar\BarConfig\$size
float $size
Definition:
BarConfig.php:31
components
ILIAS
UI
src
Component
Chart
Bar
BarConfig.php
Generated on Wed Sep 3 2025 23:04:12 for ILIAS by
1.8.13 (using
Doxyfile
)