Source code for ooodev.format.inner.direct.chart2.legend.borders.line_properties

from __future__ import annotations
import uno
from ooodev.utils.data_type.intensity import Intensity
from ooodev.utils.color import Color
from ooodev.units.unit_obj import UnitT
from ooodev.format.inner.preset.preset_border_line import BorderLineKind
from ooodev.format.inner.direct.chart2.chart.borders.line_properties import LineProperties as ChartLineProperties


[docs]class LineProperties(ChartLineProperties): """ This class represents the line properties of a chart Legend borders line properties. .. seealso:: - :ref:`help_chart2_format_direct_legend_borders` """
[docs] def __init__( self, style: BorderLineKind = BorderLineKind.CONTINUOUS, color: Color = Color(0), width: float | UnitT = 0, transparency: int | Intensity = 0, ) -> None: """ Constructor. Args: style (BorderLineKind): Line style. Defaults to ``BorderLineKind.CONTINUOUS``. color (Color, optional): Line Color. Defaults to ``Color(0)``. width (float | UnitT, optional): Line Width (in ``mm`` units) or :ref:`proto_unit_obj`. Defaults to ``0``. transparency (int | Intensity, optional): Line transparency from ``0`` to ``100``. Defaults to ``0``. Returns: None: See Also: - :ref:`help_chart2_format_direct_legend_borders` """ super().__init__(style=style, color=color, width=width, transparency=transparency)