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:
object
Partial 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
,SQUARE
andRECT
style 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_gradient
is cancelled and not handled.- Returns:
Chart Fill Gradient instance or
None
if cancelled.- Return type:
ChartFillGradientT | None
Hint
GradientStyle
can be imported fromooo.dyn.awt.gradient_style
Angle
can be imported fromooodev.units
ColorRange
can be imported fromooodev.utils.data_type.color_range
Intensity
can be imported fromooodev.utils.data_type.intensity
IntensityRange
can be imported fromooodev.utils.data_type.intensity_range
Offset
can 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
PresetGradientKind
can 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_get
is cancelled and not handled.- Returns:
Gradient style or
None
if cancelled.- Return type:
ChartFillGradientT | None