Statistics
| Revision:

gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / gvsig_2_3_0 / mapcontext.py @ 462

History | View | Annotate | Download (469 Bytes)

1

    
2

    
3
from org.gvsig.fmap.mapcontext import MapContext as JMapContext
4

    
5

    
6
def __call(self):
7
  return self
8

    
9
def __iter(self):
10
    return self.getLayers().__iter__()
11

    
12
def __len(self):
13
  return self.getLayers().getLayersCount()
14

    
15
def __getitem(self, index):
16
  return self.getLayers().getLayer(index)
17
  
18
#
19
# Inject new methods in the class JMapContext
20
#
21

    
22
JMapContext.__call__ = __call
23
JMapContext.__iter__ = __iter
24
JMapContext.__len__ = __len
25
JMapContext.__getitem__ = __getitem
26