Revision 735
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/lib/gvsig/javadocs/scripting/mapcontext/FLyrVect.java | ||
---|---|---|
54 | 54 |
/** |
55 | 55 |
* |
56 | 56 |
*/ |
57 |
public void append(...) {
|
|
57 |
public void append(Object... values) {
|
|
58 | 58 |
|
59 | 59 |
} |
60 | 60 |
|
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/lib/gvsig/javadocs/scripting/doc-files/anotaciones.html | ||
---|---|---|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
2 |
<html> |
|
3 |
<head> |
|
4 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
|
5 |
<title>anotaciones</title> |
|
6 |
</head> |
|
7 |
<body> |
|
8 |
<div style="margin: 10px auto; padding: 10px 5px 5px 45px; width: |
|
9 |
400px; background-repeat: no-repeat; background-position: 5px 5px; |
|
10 |
background-image: url('./icon-hint.png'); background-color: |
|
11 |
#d8e4f1;">hint</div> |
|
12 |
<div style="margin: 10px auto; padding: 10px 5px 5px 45px; width: |
|
13 |
400px; background-repeat: no-repeat; background-position: 5px 5px; |
|
14 |
background-image: url('./icon-tip.png'); background-color: |
|
15 |
#ddffdd;">tip</div> |
|
16 |
<div style="margin: 10px auto; padding: 10px 5px 5px 45px; width: |
|
17 |
400px; background-repeat: no-repeat; background-position: 5px 5px; |
|
18 |
background-image: url('./icon-note.png'); background-color: |
|
19 |
#ffffce;">note</div> |
|
20 |
<div style="margin: 10px auto; padding: 10px 5px 5px 45px; width: |
|
21 |
400px; background-repeat: no-repeat; background-position: 5px 5px; |
|
22 |
background-image: url('icon-warning.png'); background-color: |
|
23 |
#ffcccc;">warnning</div> |
|
24 |
<div style="margin: 10px auto; padding: 10px 5px 5px 45px; width: |
|
25 |
400px; background-repeat: no-repeat; background-position: 5px 5px; |
|
26 |
background-image: url('./icon-danger.png'); background-color: |
|
27 |
#cf6a6a;">danger</div> |
|
28 |
<br> |
|
29 |
</body> |
|
30 |
</html> |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/lib/gvsig/javadocs/scripting/doc-files/simplified-object-model.html | ||
---|---|---|
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
2 |
<html> |
|
3 |
<head> |
|
4 |
<meta http-equiv="content-type" content="text/html; |
|
5 |
charset=windows-1252"> |
|
6 |
<title>Modelo de objetos simplificado</title> |
|
7 |
</head> |
|
8 |
<body> |
|
9 |
<h2>Modelo de objetos simplificado</h2> |
|
10 |
Aqu? podemos ver un esquema con los componentes de uso mas comun |
|
11 |
desde scripting, la relaci?n entre ellos y como podemos acceder a |
|
12 |
ellos desde nuestro script.<br> |
|
13 |
Ademas podemos navegar a la informaci?n de la clase Java pulsando |
|
14 |
sobre el componente.<br> |
|
15 |
<br> |
|
16 |
<p style="margin: 10px auto; padding: 10px 5px 5px 45px; width: |
|
17 |
400px; background-repeat: no-repeat; background-position: 5px 5px; |
|
18 |
background-image: url('icon-note.png'); |
|
19 |
background-color: #ffffce;" align="center"> <small><b>Desarrolladores |
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
java y usuarios con conocimientos sobre UML </b><br> |
|
26 |
El diagrama y comentarios esta pensado para que sea lo mas |
|
27 |
entendible posible por un usuario sin conocimientos de java ni |
|
28 |
UML, no para ser estricto con la nomenclatura UML. </small></p> |
|
29 |
<p align="center"><img |
|
30 |
src="Modelo%20de%20objetos%20simplificado.png" |
|
31 |
usemap="#map" height="1143" width="1022" border="0"></p> |
|
32 |
<map name="map"> |
|
33 |
<!-- #$-:Image map file created by GIMP Image Map plug-in --> |
|
34 |
<!-- #$-:GIMP Image Map plug-in by Maurits Rijk --> |
|
35 |
<!-- #$-:Please do not edit lines starting with "#$" --> |
|
36 |
<!-- #$VERSION:2.3 --> |
|
37 |
<!-- #$AUTHOR:Joaquin del Cerro Murciano --> <area shape="rect" |
|
38 |
coords="328,96,411,136" |
|
39 |
href="../../../../javadocs/html/org/gvsig/app/project/Project.html"> |
|
40 |
<area shape="rect" coords="326,169,406,216" |
|
41 |
href="../../../../javadocs/html/org/gvsig/app/project/documents/Document.html"> |
|
42 |
<area shape="rect" coords="315,303,427,346" |
|
43 |
href="../../../../javadocs/html/org/gvsig/app/project/documents/view/ViewDocument.html"> |
|
44 |
<area shape="rect" coords="324,433,416,474" |
|
45 |
href="../../../../javadocs/html/org/gvsig/fmap/mapcontext/MapContext.html"> |
|
46 |
<area shape="rect" coords="325,516,498,605" |
|
47 |
href="../../../../javadocs/html/org/gvsig/fmap/mapcontext/layers/FLayers.html"> |
|
48 |
<area shape="rect" coords="316,683,390,719" |
|
49 |
href="../../../../javadocs/html/org/gvsig/fmap/mapcontext/layers/FLyrDefault.html"> |
|
50 |
<area shape="rect" coords="38,629,156,733" |
|
51 |
href="../../../../javadocs/html/org/gvsig/fmap/dal/feature/FeatureStore.html"> |
|
52 |
<area shape="rect" coords="69,777,152,813" |
|
53 |
href="../../../../javadocs/html/org/gvsig/fmap/dal/feature/FeatureSet.html"> |
|
54 |
<area shape="rect" coords="166,779,260,815" |
|
55 |
href="../../../../javadocs/html/org/gvsig/fmap/dal/feature/FeatureType.html"> |
|
56 |
<area shape="rect" coords="75,891,216,953" |
|
57 |
href="../../../../javadocs/html/org/gvsig/fmap/dal/feature/Feature.html"> |
|
58 |
<area shape="rect" coords="62,990,228,1061" |
|
59 |
href="../../../../javadocs/html/org/gvsig/fmap/dal/feature/EditableFeature.html"> |
|
60 |
<area shape="rect" coords="372,894,450,925" |
|
61 |
href="../../../../javadocs/html/org/gvsig/fmap/geom/Geometry.html"> |
|
62 |
<area shape="rect" coords="566,811,693,844" |
|
63 |
href="../../../../javadocs/html/org/gvsig/fmap/geom/GeometryLocator.html"> |
|
64 |
<area shape="rect" coords="555,900,686,936" |
|
65 |
href="../../../../javadocs/html/org/gvsig/fmap/geom/GeometryManager.html"> |
|
66 |
<area shape="rect" coords="40,242,162,279" |
|
67 |
href="../../../../javadocs/html/org/gvsig/app/project/documents/table/TableDocument.html"> |
|
68 |
<area shape="rect" coords="579,235,704,266" |
|
69 |
href="../../../../javadocs/html/org/gvsig/app/project/documents/layout/LayoutDocument.html"> |
|
70 |
<area shape="rect" coords="588,309,693,341" |
|
71 |
href="../../../../javadocs/html/org/gvsig/app/project/documents/layout/LayoutContext.html"> |
|
72 |
<area shape="rect" coords="606,380,747,416" |
|
73 |
href="../../../../javadocs/html/org/gvsig/app/project/documents/layout/fframes/FFrame.html"> |
|
74 |
<area shape="rect" coords="547,437,640,472" |
|
75 |
href="../../../../javadocs/html/org/gvsig/app/project/documents/layout/fframes/FFrameView.html"> |
|
76 |
<area shape="rect" coords="654,540,760,576" |
|
77 |
href="../../../../javadocs/html/org/gvsig/app/project/documents/layout/fframes/FFramePicture.html"> |
|
78 |
<area shape="rect" coords="604,502,691,533" |
|
79 |
href="../../../../javadocs/html/org/gvsig/app/project/documents/layout/fframes/FFrameText.html"> |
|
80 |
</map> |
|
81 |
<h2>Como interpretar el diagrama</h2> |
|
82 |
En el diagrama anterior podemos ver:<br> |
|
83 |
<ul> |
|
84 |
<li><b>Cajas en amarillo</b>, que representan a objetos que |
|
85 |
podemos encontrarnos y con los que podemos trabajar. </li> |
|
86 |
<li><b>Cajas en verde</b>, nos indican acciones que podemos |
|
87 |
realizar desde nuestro script. Por ejemplo, podemo ver:<br> |
|
88 |
<p align="center"><img src="interpretar-funcion.png"></p> |
|
89 |
Lo interpretaremos como que disponemos de una <i>funcion</i>, <i>currentProject()</i>, |
|
90 |
que podemos ejecutar desde nuestro script para obtener el |
|
91 |
objerto con el que esta relacionada, en este caso el <i>project</i>. |
|
92 |
Para los elementos etiquetados como <i>"<<funcion>>"</i>, |
|
93 |
precisaremos haber importado el modulo <i>gvsig</i>.<br> |
|
94 |
<pre> from gvsig import * |
|
95 |
</pre> |
|
96 |
</li> |
|
97 |
<li><b>Cajas en azul</b>, nos indica que se trata de una entidad |
|
98 |
abstracta. Nunca encontraremos objetos de este tipo. Hacen |
|
99 |
referencia de forma generica a un grupo de objetos con |
|
100 |
caracteristicas comunes; por ejemplo, tendremos un <i>Document</i> |
|
101 |
que agrupa las caracteristicas comunes de <i>ViewDocument</i>, |
|
102 |
<i>TableDocument</i> o <i>LayoutDocument</i>. En el diagrama |
|
103 |
podemos encontrarnos, por ejemplo:<br> |
|
104 |
<p align="center"><img src="interpretar-herencia.png"></p> |
|
105 |
Aqui tendriamos una entidad <i>FFrame</i> abstracta, no nos |
|
106 |
encontraremos nunca objetos de este tipo, lo que nos |
|
107 |
encontraremos sera objetos de tipo <i>FFrameView</i>, <i>FFramePicture</i> |
|
108 |
o <i>FFrameText</i>, y nos indica que todos los objetos |
|
109 |
concretos relacionados con <i>FFrame</i> tendran un conjunto de |
|
110 |
atributos y operaciones comunes. </li> |
|
111 |
<li><b>Asociaciones entre objetos</b>, que nos indican que a |
|
112 |
partir de un objeto podemos obtener otro o un conjunto de otros. |
|
113 |
Por ejemplo:<br> |
|
114 |
<p align="center"><img src="interpretar-asociacion.png"></p> |
|
115 |
Nos indica que si disponemos de un objeto <i>LayoutDocument</i>, |
|
116 |
podemos obtener el objeto <i>LayoutContext</i> invocando a la |
|
117 |
operaci?n o metodo <i>getLaypoutContext</i>.<br> |
|
118 |
<pre> laypoutContext = layoutDocument.getLaypoutContext() |
|
119 |
</pre> |
|
120 |
</li> |
|
121 |
</ul> |
|
122 |
</body> |
|
123 |
</html> |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/lib/gvsig/javadocs/scripting/project/Project.java | ||
---|---|---|
6 | 6 |
import org.gvsig.app.project.documents.view.ViewDocument; |
7 | 7 |
|
8 | 8 |
/** |
9 |
* Esta clase representa a un proyecto de gvSIG. |
|
9 | 10 |
* |
11 |
* Puede encontrar un modelo simplificado de objetos en el que |
|
12 |
* se representa el proyecto y las clases relacionadas con el en |
|
13 |
* <a href="../doc-files/simplified-object-model.html">Modelo simplificado de objetos</a> |
|
10 | 14 |
* |
11 | 15 |
*/ |
12 | 16 |
public interface Project extends org.gvsig.app.project.Project { |
13 | 17 |
|
14 | 18 |
/** |
15 |
* Returns the java object associated to this python object. With the |
|
16 |
* current implementation this is not necessary, don't use now python |
|
17 |
* wrappers for java objects. |
|
18 | 19 |
* |
19 | 20 |
* @return |
20 |
* @deprecated this method now return self alwais. |
|
21 |
* |
|
22 | 21 |
*/ |
23 |
public Object __call__(); |
|
24 |
|
|
25 |
/** |
|
26 |
* |
|
27 |
* @return |
|
28 |
*/ |
|
29 | 22 |
public Iterator<Document> __iter__(); |
30 | 23 |
|
31 | 24 |
/** |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/lib/gvsig/javadocs/scripting/project/table/TableDocument.java | ||
---|---|---|
41 | 41 |
/** |
42 | 42 |
* |
43 | 43 |
*/ |
44 |
public void append(...);
|
|
44 |
public void append(Object... values);
|
|
45 | 45 |
|
46 | 46 |
/** |
47 | 47 |
* |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/lib/gvsig/javadocs/scripting/geom.java | ||
---|---|---|
66 | 66 |
* |
67 | 67 |
* @param subtype, optional, defiult 2D |
68 | 68 |
*/ |
69 |
public static Geometry createMultiPoint(int subtype, ...) {
|
|
69 |
public static Geometry createMultiPoint(int subtype, Object... parameters) {
|
|
70 | 70 |
return null; |
71 | 71 |
} |
72 | 72 |
|
73 |
public static Geometry createPolygon(int subtype, ...) {
|
|
73 |
public static Geometry createPolygon(int subtype, Object... parameters) {
|
|
74 | 74 |
return null; |
75 | 75 |
} |
76 | 76 |
|
77 |
public static Geometry createMultiPolygon(int subtype, ...) {
|
|
77 |
public static Geometry createMultiPolygon(int subtype, Object... parameters) {
|
|
78 | 78 |
return null; |
79 | 79 |
} |
80 | 80 |
|
81 |
public static Geometry createLine(int subtype, ...) {
|
|
81 |
public static Geometry createLine(int subtype, Object... parameters) {
|
|
82 | 82 |
return null; |
83 | 83 |
} |
84 | 84 |
|
85 |
public static Geometry createMultiLine(int subtype, ...) {
|
|
85 |
public static Geometry createMultiLine(int subtype, Object... parameters) {
|
|
86 | 86 |
return null; |
87 | 87 |
} |
88 | 88 |
|
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/lib/gvsig/javadocs/scripting/gvsig.java | ||
---|---|---|
3 | 3 |
import org.gvsig.fmap.dal.feature.FeatureType; |
4 | 4 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
5 | 5 |
|
6 |
/** |
|
7 |
* Representa al modulo python "gvsig". |
|
8 |
* |
|
9 |
* Es el modulo base que nos facilita el acceso a todos |
|
10 |
* los componentes de gvSIG. |
|
11 |
* |
|
12 |
* Puede encontrar un modelo simplificado de objetos mas usadas en |
|
13 |
* <a href="../doc-files/simplified-object-model.html">Modelo simplificado de objetos</a> |
|
14 |
* |
|
15 |
* |
|
16 |
*/ |
|
6 | 17 |
public class gvsig { |
7 | 18 |
|
8 | 19 |
/** |
... | ... | |
63 | 74 |
* @param layerType The layer type to create (Shape, ...) |
64 | 75 |
* |
65 | 76 |
*/ |
66 |
public static FLayer creaetLayer(FeatureType schema, String serverType, String layerType, ...) {
|
|
77 |
public static FLayer creaetLayer(FeatureType schema, String serverType, String layerType, Object... parameters) {
|
|
67 | 78 |
return null; |
68 | 79 |
} |
69 | 80 |
|
... | ... | |
73 | 84 |
* Use as default serverType the "FilesystemExplorer". |
74 | 85 |
* |
75 | 86 |
*/ |
76 |
public static FLayer creaetLayer(FeatureType schema, String layerType, ...) {
|
|
87 |
public static FLayer creaetLayer(FeatureType schema, String layerType, Object... parameters) {
|
|
77 | 88 |
return null; |
78 | 89 |
} |
79 | 90 |
|
... | ... | |
114 | 125 |
* @return |
115 | 126 |
* |
116 | 127 |
*/ |
117 |
public static FLayer loadLayer(String layerType, ...) {
|
|
128 |
public static FLayer loadLayer(String layerType, Object... parameters) {
|
|
118 | 129 |
return null; |
119 | 130 |
} |
120 | 131 |
|
121 | 132 |
|
122 | 133 |
|
123 |
|
|
134 |
/* |
|
124 | 135 |
def createShape(definition, filename, geometryType, CRS="CRS:84"): |
125 | 136 |
""" |
126 | 137 |
Return new shape layer |
... | ... | |
301 | 312 |
color = sp.getDefaultSymbolFillColor() |
302 | 313 |
|
303 | 314 |
return color |
304 |
|
|
315 |
*/ |
|
305 | 316 |
} |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/lib/gvsig/javadocs/scripting/dal/EditableFeature.java | ||
---|---|---|
99 | 99 |
* of the feature by this name. |
100 | 100 |
* |
101 | 101 |
*/ |
102 |
public void setValues(...) ;
|
|
102 |
public void setValues(Object...values) ;
|
|
103 | 103 |
|
104 | 104 |
/** |
105 | 105 |
* Sets value of the attribute name. |
org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/lib/gvsig/javadocs/scripting/dal/FeatureStore.java | ||
---|---|---|
40 | 40 |
/** |
41 | 41 |
* |
42 | 42 |
*/ |
43 |
public void append(...) ;
|
|
43 |
public void append(Object... values) ;
|
|
44 | 44 |
|
45 | 45 |
/** |
46 | 46 |
* |
Also available in: Unified diff