Package muntjac :: Package addon :: Package google_maps :: Package overlay :: Module poly_overlay
[hide private]
[frames] | no frames]

Source Code for Module muntjac.addon.google_maps.overlay.poly_overlay

 1  # Copyright (C) 2012 Vaadin Ltd.  
 2  # Copyright (C) 2012 Richard Lincoln 
 3  #  
 4  # Licensed under the Apache License, Version 2.0 (the "License");  
 5  # you may not use this file except in compliance with the License.  
 6  # You may obtain a copy of the License at  
 7  #  
 8  #     http://www.apache.org/licenses/LICENSE-2.0  
 9  #  
10  # Unless required by applicable law or agreed to in writing, software  
11  # distributed under the License is distributed on an "AS IS" BASIS,  
12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
13  # See the License for the specific language governing permissions and  
14  # limitations under the License. 
15   
16   
17 -class PolyOverlay(object):
18
19 - def __init__(self, Id, points, color='#ffffff', weight=1, opacity=1.0, 20 clickable=False):
21 self._id = Id 22 self._points = points 23 self._color = color 24 self._weight = weight 25 self._opacity = opacity 26 self._clickable = clickable
27
28 - def getId(self):
29 return self._id
30
31 - def setId(self, Id):
32 self._id = Id
33
34 - def getPoints(self):
35 return self._points
36
37 - def setPoints(self, points):
38 self._points = points
39
40 - def getColor(self):
41 return self._color
42
43 - def setColor(self, color):
44 self._color = color
45
46 - def getWeight(self):
47 return self._weight
48
49 - def setWeight(self, weight):
50 self._weight = weight
51
52 - def getOpacity(self):
53 return self._opacity
54
55 - def setOpacity(self, opacity):
56 self._opacity = opacity
57
58 - def isClickable(self):
59 return self._clickable
60
61 - def setClickable(self, clickable):
62 self._clickable = clickable
63