ooodev.format.proto.chart2.area.chart_fill_hatch_t module

protocol ooodev.format.proto.chart2.area.chart_fill_hatch_t.ChartFillHatchT[source]

Bases: StyleMultiT, Protocol

Chart Fill Hatch Protocol

Classes that implement this protocol must have the following methods / attributes:

__init__(chart_doc, *, style=Ellipsis, color=Ellipsis, space=Ellipsis, angle=Ellipsis, bg_color=Ellipsis)[source]

Constructor.

Parameters:
  • chart_doc (XChartDocument) – Chart document.

  • style (HatchStyle, optional) – Specifies the kind of lines used to draw this hatch. Default HatchStyle.SINGLE.

  • color (Color, optional) – Specifies the color of the hatch lines. Default 0.

  • space (float, UnitT, optional) – Specifies the space between the lines in the hatch (in mm units) or Class UnitT. Default 0.0

  • angle (Angle, int, optional) – Specifies angle of the hatch in degrees. Default to 0.

  • bg_color (Color, optional) – Specifies the background Color. Set this -1 (default) for no background color.

Return type:

None

from_preset(chart_doc: XChartDocument, preset: PresetHatchKind) ChartFillHatchT
from_preset(chart_doc: XChartDocument, preset: PresetHatchKind) ChartFillHatchT
from_preset(**kwds)

Helper for @overload to raise when called.

__protocol_attrs__ = {'add_event_listener', 'add_event_observer', 'apply', 'backup', 'copy', 'from_preset', 'get_attrs', 'get_props', 'get_update_obj', 'has_update_obj', 'on_applied', 'on_applying', 'on_property_backed_up', 'on_property_backing_up', 'on_property_restore_set', 'on_property_restore_setting', 'on_property_set', 'on_property_set_error', 'prop_angle', 'prop_bg_color', 'prop_color', 'prop_format_kind', 'prop_has_attribs', 'prop_has_backup', 'prop_hatch_name', 'prop_parent', 'prop_space', 'prop_style', 'remove_event_listener', 'remove_event_observer', 'restore', 'set_update_obj', 'support_service', 'update'}
property prop_angle: Angle

Gets/Sets the angle.

Return type:

Angle

property prop_bg_color: Color

Gets/Sets the background color.

Return type:

NewType()(Color, int)

property prop_color: Color

Gets/Sets the color.

Return type:

NewType()(Color, int)

property prop_hatch_name: str

Gets Hatch Name.

Return type:

str

property prop_space: UnitMM

Gets/Sets the space.

Return type:

UnitMM

property prop_style: HatchStyle

Gets/Sets the style.

Return type:

HatchStyle