root / branches / v2_0_0_prep / applications / appgvSIG / src / org / gvsig / app / project / documents / layout / tools / behavior / ILayoutBehavior.java @ 29598
History | View | Annotate | Download (2.4 KB)
1 |
package org.gvsig.app.project.documents.layout.tools.behavior; |
---|---|
2 |
|
3 |
|
4 |
import java.awt.Graphics; |
5 |
import java.awt.Image; |
6 |
import java.awt.event.MouseEvent; |
7 |
import java.awt.event.MouseWheelEvent; |
8 |
|
9 |
import org.gvsig.app.project.documents.layout.LayoutControl; |
10 |
import org.gvsig.app.project.documents.layout.tools.listener.LayoutToolListener; |
11 |
import org.gvsig.fmap.mapcontrol.tools.BehaviorException; |
12 |
|
13 |
/**
|
14 |
* Layout behavior.
|
15 |
*
|
16 |
* @author Vicente Caballero Navarro
|
17 |
*/
|
18 |
public interface ILayoutBehavior { |
19 |
|
20 |
/**
|
21 |
* Devuelve el ToolListener que est? seleccionado.
|
22 |
*
|
23 |
* @return ToolListener seleccionado.
|
24 |
*/
|
25 |
public LayoutToolListener getListener();
|
26 |
|
27 |
/**
|
28 |
* @see org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior#paintComponent(java.awt.Graphics)
|
29 |
*/
|
30 |
public void paintComponent(Graphics g); |
31 |
|
32 |
/**
|
33 |
* Inserta el Layout.
|
34 |
*
|
35 |
* @param lc Layout a insertar.
|
36 |
*/
|
37 |
public void setLayoutControl(LayoutControl lc); |
38 |
|
39 |
/**
|
40 |
* Devuelve la imagen del cursor de la herrameinta.
|
41 |
*
|
42 |
* @return Image cursor de la herramienta.
|
43 |
*/
|
44 |
public Image getImageCursor(); |
45 |
|
46 |
/**
|
47 |
* Devuelve el Layout.
|
48 |
*
|
49 |
* @return Layout.
|
50 |
*/
|
51 |
public LayoutControl getLayoutControl();
|
52 |
|
53 |
/**
|
54 |
* @see java.awt.event.MouseListener#mouseClicked(java.awt.event.MouseEvent)
|
55 |
*/
|
56 |
public void mouseClicked(MouseEvent e) throws BehaviorException; |
57 |
|
58 |
/**
|
59 |
* @see java.awt.event.MouseListener#mouseEntered(java.awt.event.MouseEvent)
|
60 |
*/
|
61 |
public void mouseEntered(MouseEvent e) throws BehaviorException; |
62 |
|
63 |
/**
|
64 |
* @see java.awt.event.MouseListener#mouseExited(java.awt.event.MouseEvent)
|
65 |
*/
|
66 |
public void mouseExited(MouseEvent e) throws BehaviorException; |
67 |
|
68 |
/**
|
69 |
* @see java.awt.event.MouseListener#mousePressed(java.awt.event.MouseEvent)
|
70 |
*/
|
71 |
public void mousePressed(MouseEvent e) throws BehaviorException; |
72 |
|
73 |
/**
|
74 |
* @see java.awt.event.MouseListener#mouseReleased(java.awt.event.MouseEvent)
|
75 |
*/
|
76 |
public void mouseReleased(MouseEvent e) throws BehaviorException; |
77 |
|
78 |
/**
|
79 |
* @see java.awt.event.MouseMotionListener#mouseDragged(java.awt.event.MouseEvent)
|
80 |
*/
|
81 |
public void mouseDragged(MouseEvent e) throws BehaviorException; |
82 |
|
83 |
/**
|
84 |
* @see java.awt.event.MouseMotionListener#mouseMoved(java.awt.event.MouseEvent)
|
85 |
*/
|
86 |
public void mouseMoved(MouseEvent e) throws BehaviorException; |
87 |
|
88 |
/**
|
89 |
* @see java.awt.event.MouseWheelListener#mouseWheelMoved(java.awt.event.MouseWheelEvent)
|
90 |
*/
|
91 |
public void mouseWheelMoved(MouseWheelEvent e) throws BehaviorException; |
92 |
|
93 |
public boolean isAdjustable(); |
94 |
|
95 |
} |