gvsig-raster / org.gvsig.raster.georeferencing / trunk / org.gvsig.raster.georeferencing / org.gvsig.raster.georeferencing.swing / org.gvsig.raster.georeferencing.swing.api / src / main / java / org / gvsig / raster / georeferencing / swing / view / GeoreferencingView.java @ 1692
History | View | Annotate | Download (1.78 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
package org.gvsig.raster.georeferencing.swing.view; |
23 |
|
24 |
import java.awt.Graphics2D; |
25 |
|
26 |
import javax.swing.JPanel; |
27 |
|
28 |
/**
|
29 |
* @author Nacho Brodin nachobrodin@gmail.com
|
30 |
*/
|
31 |
public interface GeoreferencingView { |
32 |
|
33 |
public JPanel getComponent(); |
34 |
|
35 |
public void setViewListener(ViewListener listener); |
36 |
|
37 |
public void setRequestListener(IExtensionRequest listener); |
38 |
|
39 |
public void setTool(int tool, ToolListener listener); |
40 |
|
41 |
/**
|
42 |
* Gets the Graphics object
|
43 |
* @return
|
44 |
*/
|
45 |
public Graphics2D getCanvasGraphic(); |
46 |
|
47 |
/**
|
48 |
* Gets the width of the canvas
|
49 |
* @return
|
50 |
*/
|
51 |
public int getCanvasWidth(); |
52 |
|
53 |
/**
|
54 |
* Gets the height of the canvas
|
55 |
* @return
|
56 |
*/
|
57 |
public int getCanvasHeight(); |
58 |
|
59 |
/**
|
60 |
* Sets the cursor position on the canvas
|
61 |
* @param x
|
62 |
* @param y
|
63 |
*/
|
64 |
public void setCursorPosition(int x, int y); |
65 |
|
66 |
/**
|
67 |
* Sets the cursor size
|
68 |
* @param w
|
69 |
* @param h
|
70 |
*/
|
71 |
public void setCursorSize(int w, int h); |
72 |
} |