ooodev.format.inner.partial.chart2.area.chart_fill_gradient_partial module
- class ooodev.format.inner.partial.chart2.area.chart_fill_gradient_partial.ChartFillGradientPartial(factory_name, component, lo_inst=None)[source]
Bases:
objectPartial class for Chart Fill Gradient.
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- __init__(factory_name, component, lo_inst=None)[source]
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- Return type:
None
- style_area_gradient(*, style=GradientStyle.LINEAR, step_count=0, offset=Offset(x=50, y=50), angle=0, border=0, grad_color=ColorRange(start=0, end=16777215), grad_intensity=IntensityRange(start=100, end=100), name='')[source]
Style Area Color.
- Parameters:
style (GradientStyle, optional) – Specifies the style of the gradient. Defaults to
GradientStyle.LINEAR.step_count (int, optional) – Specifies the number of steps of change color. Defaults to
0.offset (Offset, int, optional) – Specifies the X and Y coordinate, where the gradient begins. X is effectively the center of the
RADIAL,ELLIPTICAL,SQUAREandRECTstyle gradients. Defaults toOffset(50, 50).angle (Angle, int, optional) – Specifies angle of the gradient. Defaults to
0.border (int, optional) – Specifies percent of the total width where just the start color is used. Defaults to
0.grad_color (ColorRange, optional) – Specifies the color at the start point and stop point of the gradient. Defaults to
ColorRange(Color(0), Color(16777215)).grad_intensity (IntensityRange, optional) – Specifies the intensity at the start point and stop point of the gradient. Defaults to
IntensityRange(100, 100).name (str, optional) – Specifies the Fill Gradient Name.
- Raises:
CancelEventError – If the event
before_style_area_gradientis cancelled and not handled.- Returns:
Chart Fill Gradient instance or
Noneif cancelled.- Return type:
ChartFillGradientT | None
Hint
GradientStylecan be imported fromooo.dyn.awt.gradient_styleAnglecan be imported fromooodev.unitsColorRangecan be imported fromooodev.utils.data_type.color_rangeIntensitycan be imported fromooodev.utils.data_type.intensityIntensityRangecan be imported fromooodev.utils.data_type.intensity_rangeOffsetcan be imported fromooodev.utils.data_type.offset
- style_area_gradient_from_preset(preset)[source]
Style Area Gradient from Preset.
- Parameters:
preset (PresetGradientKind) – Preset Gradient Kind.
- Returns:
Chart Fill Gradient instance.
- Return type:
Hint
PresetGradientKindcan be imported fromooodev.format.inner.preset.preset_gradient
- style_area_gradient_get()[source]
Gets the Area Gradient Style.
- Raises:
CancelEventError – If the event
before_style_area_gradient_getis cancelled and not handled.- Returns:
Gradient style or
Noneif cancelled.- Return type:
ChartFillGradientT | None