
    Mi	                    N    S r SSKJr  SSKJr  SSKJr  SSKJr   " S S\	5      r
g)	zLegend of a chart.    )annotations)XL_LEGEND_POSITION)Font)lazypropertyc                     ^  \ rS rSrSrU 4S jr\S 5       r\S 5       r	\	R                  S 5       r	\S 5       r\R                  S 5       r\S	 5       r\R                  S
 5       rSrU =r$ )Legend
   zH
Represents the legend in a chart. A chart can have at most one legend.
c                6   > [         [        U ]  5         Xl        g N)superr   __init___element)self
legend_elm	__class__s     k/var/www/eduai.edurigo.com/storigo/production/storigo_env/lib/python3.13/site-packages/pptx/chart/legend.pyr   Legend.__init__   s    fd$&"    c                H    U R                   R                  n[        U5      nU$ )zk
The |Font| object that provides access to the text properties for
this legend, such as bold, italic, etc.
)r   defRPrr   )r   r   fonts      r   r   Legend.font   s!     %%F|r   c                .    U R                   R                  $ )a  
Adjustment of the x position of the legend from its default.
Expressed as a float between -1.0 and 1.0 representing a fraction of
the chart width. Negative values move the legend left, positive
values move it to the right. |None| if no setting is specified.
r   horz_offset)r   s    r   r   Legend.horz_offset   s     }}(((r   c                $    XR                   l        g r   r   r   values     r   r   r   '   s    $)!r   c                N    U R                   R                  nUc  gUR                  $ )a  |True| if legend should be located inside plot area.

Read/write boolean specifying whether legend should be placed inside
the plot area. In many cases this will cause it to be superimposed on
the chart itself. Assigning |None| to this property causes any
`c:overlay` element to be removed, which is interpreted the same as
|True|. This use case should rarely be required and assigning
a boolean value is recommended.
T)r   overlayval)r   r!   s     r   include_in_layoutLegend.include_in_layout+   s%     --''?{{r   c                    Uc  U R                   R                  5         g [        U5      U R                   R                  5       l        g r   )r   _remove_overlayboolget_or_add_overlayr"   r   s     r   r#   r$   ;   s3    =MM))+15e((*.r   c                l    U R                   R                  nUc  [        R                  $ UR                  $ )z
Read/write :ref:`XlLegendPosition` enumeration value specifying the
general region of the chart in which to place the legend.
)r   	legendPosr   RIGHTr"   )r   r*   s     r   positionLegend.positionB   s/     MM++	%+++}}r   c                @    XR                   R                  5       l        g r   )r   get_or_add_legendPosr"   )r   r,   s     r   r,   r-   M   s    3;**,0r   )r   )__name__
__module____qualname____firstlineno____doc__r   r   r   propertyr   setterr#   r,   __static_attributes____classcell__)r   s   @r   r   r   
   s    #   ) ) * *   = =   __< <r   r   N)r4   
__future__r   pptx.enum.chartr   pptx.text.textr   	pptx.utilr   objectr    r   r   <module>r?      s"     " .  "E<V E<r   