
    \ik                     z    S r SSKJrJr  SSKJrJrJrJrJ	r	J
r
   " S S\5      r " S S\5      r " S S	\5      rg
)a  
Copyright 2011-2018 Kyle Lancaster | 2019 Patrick Eisoldt

Simplekml is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

    )Kmlablecheck)	IconStyle
LabelStyle	LineStyle	PolyStyleBalloonStyle	ListStylec                   <   ^  \ rS rSrSrU 4S jr\S 5       rSrU =r	$ )StyleSelector   ztAbstract style class, extended by :class:`simplekml.Style` and :class:`simplekml.StyleMap`

There are no arguments.
c                 *   > [         [        U ]  5         g N)superr   __init__self	__class__s    Z/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/simplekml/styleselector.pyr   StyleSelector.__init__   s    mT+-    c                     U R                   $ )zThe id of the style, read-only.)_idr   s    r   idStyleSelector.id    s     xxr    )
__name__
__module____qualname____firstlineno____doc__r   propertyr   __static_attributes____classcell__r   s   @r   r   r      s!    
.  r   r   c                     ^  \ rS rSrSr      SU 4S jjrU 4S jr\S 5       r\R                  \
" \5      S 5       5       r\S 5       r\R                  \
" \5      S 5       5       r\S	 5       r\R                  \
" \5      S
 5       5       r\S 5       r\R                  \
" \5      S 5       5       r\S 5       r\R                  \
" \5      S 5       5       r\S 5       r\R                  \
" \5      S 5       5       rSrU =r$ )Style&   a  Styles affect how Geometry is presented.

Arguments are the same as the properties.

Usage::

    import simplekml
    kml = simplekml.Kml()
    pnt = kml.newpoint(name='A Point')
    pnt.coords = [(1.0, 2.0)]
    pnt.style.labelstyle.color = simplekml.Color.red  # Make the text red
    pnt.style.labelstyle.scale = 2  # Make the text twice as big
    pnt.style.iconstyle.icon.href = 'http://maps.google.com/mapfiles/kml/shapes/placemark_circle.png'
    kml.save("Style.kml")
c                    > [         [        U ]  5         XR                  S'   X R                  S'   X0R                  S'   X@R                  S'   XPR                  S'   X`R                  S'   g )N
IconStyle_LabelStyle_
LineStyle_
PolyStyle_r	   r
   )r   r(   r   _kml)r   	iconstyle
labelstyle	linestyle	polystyleballoonstyle	liststyler   s          r   r   Style.__init__6   sZ     	eT#%"+		,#-		- "+		,"+		,$0		.!!*		+r   c                 \   > SR                  U R                  [        [        U ]  5       5      $ )Nz<Style id="{0}">{1}</Style>)formatr   r   r(   __str__r   s    r   r9   Style.__str__E   s$    ,33DHHeE4>X>Z[[r   c                 n    U R                   S   c  [        5       U R                   S'   U R                   S   $ )z4The iconstyle, accepts :class:`simplekml.IconStyle`.r+   )r/   r   r   s    r   r0   Style.iconstyleH   2     99\"*&/kDIIl#yy&&r   c                      XR                   S'   g )Nr+   r/   )r   r0   s     r   r0   r<   O        #,		,r   c                 n    U R                   S   c  [        5       U R                   S'   U R                   S   $ )z6The labelstyle, accepts :class:`simplekml.LabelStyle`.r,   )r/   r   r   s    r   r1   Style.labelstyleT   s2     99]#+'1|DIIm$yy''r   c                      XR                   S'   g )Nr,   r?   )r   r1   s     r   r1   rB   [   s     $.		- r   c                 n    U R                   S   c  [        5       U R                   S'   U R                   S   $ )z4The linestyle, accepts :class:`simplekml.LineStyle`.r-   )r/   r   r   s    r   r2   Style.linestyle`   r=   r   c                      XR                   S'   g )Nr-   r?   )r   r2   s     r   r2   rE   g   r@   r   c                 n    U R                   S   c  [        5       U R                   S'   U R                   S   $ )z4The polystyle, accepts :class:`simplekml.PolyStyle`.r.   )r/   r   r   s    r   r3   Style.polystylel   r=   r   c                      XR                   S'   g )Nr.   r?   )r   r3   s     r   r3   rH   s   r@   r   c                 n    U R                   S   c  [        5       U R                   S'   U R                   S   $ )z:The balloonstyle, accepts :class:`simplekml.BalloonStyle`.r	   )r/   r	   r   s    r   r4   Style.balloonstylex   s2     99^$,(4DIIn%yy((r   c                      XR                   S'   g )Nr	   r?   )r   r4   s     r   r4   rK      s     %1		.!r   c                 n    U R                   S   c  [        5       U R                   S'   U R                   S   $ )z4The liststyle, accepts :class:`simplekml.ListStyle`.r
   )r/   r
   r   s    r   r5   Style.liststyle   s2     99[!)%.[DIIk"yy%%r   c                      XR                   S'   g )Nr
   r?   )r   r5   s     r   r5   rN      s     "+		+r   r   )NNNNNN)r   r   r    r!   r"   r   r9   r#   r0   setterr   r   r1   r   r2   r   r3   r   r4   r	   r5   r
   r$   r%   r&   s   @r   r(   r(   &   s       "+\ ' ' 
9,  , ( ( 
:.  . ' ' 
9,  , ' ' 
9,  , ) ) 
<1  1 & & 
9+  +r   r(   c                      ^  \ rS rSrSr  S
U 4S jjrU 4S jr\S 5       r\R                  \
" \5      S 5       5       r\S 5       r\R                  \
" \5      S 5       5       rS	rU =r$ )StyleMap   an  Styles affect how Geometry is presented.

Arguments are the same as the properties.

Usage::

    import simplekml
    kml = simplekml.Kml()
    pnt = kml.newpoint(coords=[(18.432314,-33.988862)])
    pnt.stylemap.normalstyle.labelstyle.color = simplekml.Color.blue
    pnt.stylemap.highlightstyle.labelstyle.color = simplekml.Color.red
    kml.save("StyleMap.kml")
c                 ^   > [         [        U ]  5         S U l        S U l        Xl        X l        g r   )r   rR   r   _pairnormal_pairhighlightnormalstylehighlightstyle)r   rW   rX   r   s      r   r   StyleMap.__init__   s.     	h&("&,r   c                 r  > SR                  U R                  5      [        [        U ]  5       /nU R
                  bg  UR                  S5        UR                  S5        UR                  SR                  U R
                  R                  5      5        UR                  S5        U R                  bg  UR                  S5        UR                  S5        UR                  SR                  U R                  R                  5      5        UR                  S5        UR                  S5        SR                  U5      $ )	Nz<StyleMap id="{0}">z<Pair>z<key>normal</key>z<styleUrl>#{0}</styleUrl>z</Pair>z<key>highlight</key>z</StyleMap> )	r8   r   r   rR   r9   rU   appendrV   join)r   bufr   s     r   r9   StyleMap.__str__   s    $++DHH5Xt,.0'JJx JJ*+JJ299$:J:J:N:NOPJJy!*JJx JJ-.JJ299$:M:M:Q:QRSJJy!

=!wws|r   c                 R    U R                   c  [        5       U l         U R                   $ )zFThe normal :class:`simplekml.Style`, accepts :class:`simplekml.Style`.)rU   r(   r   s    r   rW   StyleMap.normalstyle   s&     #$wDr   c                     Xl         g r   )rU   )r   normals     r   rW   ra      s
     "r   c                 R    U R                   c  [        5       U l         U R                   $ )zKThe highlighted :class:`simplekml.Style`, accepts :class:`simplekml.Style`.)rV   r(   r   s    r   rX   StyleMap.highlightstyle   s&     &"''D"""r   c                     Xl         g r   )rV   )r   highlighturls     r   rX   re      s
     +r   )rV   rU   rX   rW   )NN)r   r   r    r!   r"   r   r9   r#   rW   rP   r   r(   rX   r$   r%   r&   s   @r   rR   rR      s     " $-      
5\"  " # # 
5\+  +r   rR   N)r"   simplekml.baser   r   simplekml.substyler   r   r   r   r	   r
   r   r(   rR   r   r   r   <module>rj      s<   $ * c cG h+M h+V=+} =+r   