Statistics
| Revision:

svn-document-layout / trunk / org.gvsig.app.document.layout2.app / org.gvsig.app.document.layout2.app.mainplugin / src / main / java / org / gvsig / app / project / documents / layout / tools / behavior / ILayoutBehavior.java @ 1714

History | View | Annotate | Download (3.48 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.app.project.documents.layout.tools.behavior;
23

    
24
import java.awt.Graphics;
25
import java.awt.Image;
26
import java.awt.event.MouseEvent;
27
import java.awt.event.MouseWheelEvent;
28
import org.gvsig.app.project.documents.layout.LayoutControl;
29
import org.gvsig.app.project.documents.layout.tools.listener.LayoutToolListener;
30
import org.gvsig.fmap.mapcontrol.tools.BehaviorException;
31

    
32
/**
33
 * Layout behavior.
34
 * 
35
 * @author Vicente Caballero Navarro
36
 */
37
public interface ILayoutBehavior {
38

    
39
    /**
40
     * Devuelve el ToolListener que est? seleccionado.
41
     * 
42
     * @return ToolListener seleccionado.
43
     */
44
    public LayoutToolListener getListener();
45

    
46
    /**
47
     * @see org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior#paintComponent(java.awt.Graphics)
48
     */
49
    public void paintComponent(Graphics g);
50

    
51
    /**
52
     * Inserta el Layout.
53
     * 
54
     * @param lc
55
     *            Layout a insertar.
56
     */
57
    public void setLayoutControl(LayoutControl lc);
58

    
59
    /**
60
     * Devuelve la imagen del cursor de la herrameinta.
61
     * 
62
     * @return Image cursor de la herramienta.
63
     */
64
    public Image getImageCursor();
65

    
66
    /**
67
     * Devuelve el Layout.
68
     * 
69
     * @return Layout.
70
     */
71
    public LayoutControl getLayoutControl();
72

    
73
    /**
74
     * @see java.awt.event.MouseListener#mouseClicked(java.awt.event.MouseEvent)
75
     */
76
    public void mouseClicked(MouseEvent e) throws BehaviorException;
77

    
78
    /**
79
     * @see java.awt.event.MouseListener#mouseEntered(java.awt.event.MouseEvent)
80
     */
81
    public void mouseEntered(MouseEvent e) throws BehaviorException;
82

    
83
    /**
84
     * @see java.awt.event.MouseListener#mouseExited(java.awt.event.MouseEvent)
85
     */
86
    public void mouseExited(MouseEvent e) throws BehaviorException;
87

    
88
    /**
89
     * @see java.awt.event.MouseListener#mousePressed(java.awt.event.MouseEvent)
90
     */
91
    public void mousePressed(MouseEvent e) throws BehaviorException;
92

    
93
    /**
94
     * @see java.awt.event.MouseListener#mouseReleased(java.awt.event.MouseEvent)
95
     */
96
    public void mouseReleased(MouseEvent e) throws BehaviorException;
97

    
98
    /**
99
     * @see java.awt.event.MouseMotionListener#mouseDragged(java.awt.event.MouseEvent)
100
     */
101
    public void mouseDragged(MouseEvent e) throws BehaviorException;
102

    
103
    /**
104
     * @see java.awt.event.MouseMotionListener#mouseMoved(java.awt.event.MouseEvent)
105
     */
106
    public void mouseMoved(MouseEvent e) throws BehaviorException;
107

    
108
    /**
109
     * @see java.awt.event.MouseWheelListener#mouseWheelMoved(java.awt.event.MouseWheelEvent)
110
     */
111
    public void mouseWheelMoved(MouseWheelEvent e) throws BehaviorException;
112

    
113
    public boolean isAdjustable();
114

    
115
}