root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / write / geometron / Geometron.java @ 1100
History | View | Annotate | Download (4.08 KB)
1 |
/* Generated by Together */
|
---|---|
2 |
|
3 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
4 |
*
|
5 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
6 |
*
|
7 |
* This program is free software; you can redistribute it and/or
|
8 |
* modify it under the terms of the GNU General Public License
|
9 |
* as published by the Free Software Foundation; either version 2
|
10 |
* of the License, or (at your option) any later version.
|
11 |
*
|
12 |
* This program is distributed in the hope that it will be useful,
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
* GNU General Public License for more details.
|
16 |
*
|
17 |
* You should have received a copy of the GNU General Public License
|
18 |
* along with this program; if not, write to the Free Software
|
19 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
20 |
*
|
21 |
* For more information, contact:
|
22 |
*
|
23 |
* Generalitat Valenciana
|
24 |
* Conselleria d'Infraestructures i Transport
|
25 |
* Av. Blasco Ib??ez, 50
|
26 |
* 46010 VALENCIA
|
27 |
* SPAIN
|
28 |
*
|
29 |
* +34 963862235
|
30 |
* gvsig@gva.es
|
31 |
* www.gvsig.gva.es
|
32 |
*
|
33 |
* or
|
34 |
*
|
35 |
* IVER T.I. S.A
|
36 |
* Salamanca 50
|
37 |
* 46005 Valencia
|
38 |
* Spain
|
39 |
*
|
40 |
* +34 963163400
|
41 |
* dac@iver.es
|
42 |
*/
|
43 |
package com.iver.cit.gvsig.fmap.write.geometron; |
44 |
|
45 |
import java.awt.Component; |
46 |
import java.awt.geom.Point2D; |
47 |
import java.awt.geom.Rectangle2D; |
48 |
|
49 |
import javax.swing.ImageIcon; |
50 |
|
51 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
52 |
|
53 |
public class Geometron { |
54 |
/**
|
55 |
* Acumula un area de invalidaci?n sobre la que ya hab?a
|
56 |
*/
|
57 |
public void invalidateRect(Rectangle2D invalidationArea) { |
58 |
} |
59 |
|
60 |
/**
|
61 |
* Establece la tolerancia al pinchar sobre los v?rtices
|
62 |
*/
|
63 |
public void setTolerance(int tolerance) { |
64 |
} |
65 |
|
66 |
/**
|
67 |
* Dibuja el area invalidada y reinicializa el area invalidada a null. Para dibujar recorre el EditableFeatureSource y dibuja aquellas geometrias que entren en el extent. Aquellas que se dibujan se a?aden al QuadTree.
|
68 |
*/
|
69 |
public void draw() { |
70 |
} |
71 |
|
72 |
/**
|
73 |
* Obtiene el evento de alto nivel generado por el usuario
|
74 |
*/
|
75 |
private GeometryEvent getEvent(Point2D punto, int[] indexes) { |
76 |
// TODO implementar bien
|
77 |
return null; |
78 |
} |
79 |
|
80 |
/**
|
81 |
* Metodo de inicializaci?n del Geometr?n. Se encarga de realizar la primera invalidaci?n y dibujado del extent que se le pasa como parametro
|
82 |
*/
|
83 |
public void init(Rectangle2D initialExtent) { |
84 |
} |
85 |
|
86 |
/**
|
87 |
* establece el manejador de eventos de alto nivel del geometron
|
88 |
*/
|
89 |
public void setEventHandler(EventHandler handler) { |
90 |
} |
91 |
|
92 |
/**
|
93 |
* Establece el listener de eventos de teclado de la aplicaci?n
|
94 |
*/
|
95 |
public void setKeyListener(KeyListener listener) { |
96 |
} |
97 |
|
98 |
/**
|
99 |
* Asigna la geometria que se est? a?adiendo. Se mantiene en la memoria del geometr?n con la finalidad de que no se est? a?adiendo geometr?as al fichero continuamente mientras se crea la geometria
|
100 |
*/
|
101 |
public void setNewGeometry(IGeometry fg) { |
102 |
} |
103 |
|
104 |
/**
|
105 |
* Obtiene la ?ltima geometr?a a?adida mediante setNewGeometry o null si no la hay
|
106 |
*/
|
107 |
public void getNewGeometry() { |
108 |
} |
109 |
|
110 |
/**
|
111 |
* Establece el icono de rat?n que se pondr? cuando ?ste est? sobre un v?rtice
|
112 |
*/
|
113 |
public void setVertexIcon(ImageIcon img) { |
114 |
} |
115 |
|
116 |
/**
|
117 |
* Establece el icono de rat?n que se pondr? cuando ?ste est? sobre una arista
|
118 |
*/
|
119 |
public void setEdgeIcon(ImageIcon e) { |
120 |
} |
121 |
|
122 |
/**
|
123 |
* A?ade un manejador de eventos del men? contextual del geometr?n
|
124 |
*/
|
125 |
public void addMenuItem(String text, String actionCommand, MenuHandler handler) { |
126 |
} |
127 |
|
128 |
/**
|
129 |
* Construye un nuevo Geometron asociado al Component que se pasa como par?metro y se a?ade como listener de los eventos de bajo nivel de dicho componente.
|
130 |
*/
|
131 |
public Geometron(Component c) { |
132 |
} |
133 |
|
134 |
private EditableFeatureSource source;
|
135 |
private Component c; |
136 |
private Rectangle2D invalidatedArea; |
137 |
private Selector selector; |
138 |
private QuadTree indices;
|
139 |
private EventHandler currentEventHandler; |
140 |
private KeyListener keyListener; |
141 |
private MenuHandler[] menuHandlers; |
142 |
} |