root / tags / v1_1_Build_1003 / extensions / extScripting / scripts / jython / Lib / gvsiglib.py @ 12271
History | View | Annotate | Download (1.25 KB)
1 |
|
---|---|
2 |
import sys |
3 |
from java.io import File |
4 |
|
5 |
# Cuando se importa desde la consola no esta definida
|
6 |
# la variable global gvSIG
|
7 |
try:
|
8 |
sys.gvSIG = gvSIG |
9 |
except:
|
10 |
gvSIG = sys.gvSIG |
11 |
|
12 |
SaxContentHandler = gvSIG.classForName("org.xml.sax.ContentHandler")
|
13 |
|
14 |
ShapeFactory = gvSIG.classForName("com.iver.cit.gvsig.fmap.core.ShapeFactory")
|
15 |
FConstant = gvSIG.classForName("com.iver.cit.gvsig.fmap.core.v02.FConstant")
|
16 |
FSymbol = gvSIG.classForName("com.iver.cit.gvsig.fmap.core.v02.FSymbol")
|
17 |
FGraphic = gvSIG.classForName("com.iver.cit.gvsig.fmap.rendering.FGraphic")
|
18 |
|
19 |
LayerFactory = gvSIG.classForName("com.iver.cit.gvsig.fmap.layers.LayerFactory")
|
20 |
LayerCollection = gvSIG.classForName("com.iver.cit.gvsig.fmap.layers.layerOperations.LayerCollection")
|
21 |
|
22 |
PointListener = gvSIG.classForName("com.iver.cit.gvsig.fmap.tools.Listeners.PointListener")
|
23 |
PointBehavior = gvSIG.classForName("com.iver.cit.gvsig.fmap.tools.Behavior.PointBehavior")
|
24 |
PointEvent = gvSIG.classForName("com.iver.cit.gvsig.fmap.tools.Events.PointEvent")
|
25 |
|
26 |
InfoListener = gvSIG.classForName("com.iver.cit.gvsig.project.documents.view.toolListeners.InfoListener")
|
27 |
|
28 |
|
29 |
def showMessageDialog(msg): |
30 |
from javax.swing import JOptionPane |
31 |
|
32 |
JOptionPane.showMessageDialog(None, msg)
|