<s> class Point ( object ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> def __init__ ( self , ( x , y ) , segmentType = None , smooth = False , name = None ) : <EOL> self . _x = x <EOL> self . _y = y <EOL> self . _segmentType = segmentType <EOL> self . _smooth = smooth <EOL> self . _name = name <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" % ( self . __class__ . __name__ , self . x , self . y , str ( self . segmentType ) , str ( self . smooth ) , str ( self . name ) ) <EOL> def _get_segmentType ( self ) : <EOL> return self . _segmentType <EOL> def _set_segmentType ( self , value ) : <EOL> self . _segmentType = value <EOL> segmentType = property ( _get_segmentType , _set_segmentType , doc = "<STR_LIT>" ) <EOL> def _get_x ( self ) : <EOL> return self . _x <EOL> def _set_x ( self , value ) : <EOL> self . _x = value <EOL> x = property ( _get_x , _set_x , doc = "<STR_LIT>" ) <EOL> def _get_y ( self ) : <EOL> return self . _y <EOL> def _set_y ( self , value ) : <EOL> self . _y = value <EOL> y = property ( _get_y , _set_y , doc = "<STR_LIT>" ) <EOL> def _get_smooth ( self ) : <EOL> return self . _smooth <EOL> def _set_smooth ( self , value ) : <EOL> self . _smooth = value <EOL> smooth = property ( _get_smooth , _set_smooth , doc = "<STR_LIT>" ) <EOL> def _get_name ( self ) : <EOL> return self . _name <EOL> def _set_name ( self , value ) : <EOL> self . _name = value <EOL> name = property ( _get_name , _set_name , doc = "<STR_LIT>" ) <EOL> def move ( self , ( x , y ) ) : <EOL> """<STR_LIT>""" <EOL> self . x += x <EOL> self . y += y <EOL> def getDataToSerializeForUndo ( self ) : <EOL> data = dict ( <EOL> x = self . x , <EOL> y = self . y , <EOL> segmentType = self . segmentType , <EOL> smooth = self . smooth , <EOL> name = self . name <EOL> ) <EOL> return data <EOL> def loadDeserializedDataFromUndo ( self , data ) : <EOL> self . x = data [ "<STR_LIT:x>" ] <EOL> self . y = data [ "<STR_LIT:y>" ] <EOL> self . segmentType = data [ "<STR_LIT>" ] <EOL> self . smooth = data [ "<STR_LIT>" ] <EOL> self . name = data [ "<STR_LIT:name>" ] <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> import doctest <EOL> doctest . testmod ( ) </s>
