Revision 1714 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/LayoutBehavior.java

View differences:

LayoutBehavior.java
27 27
import java.awt.Image;
28 28
import java.awt.event.MouseEvent;
29 29
import java.awt.event.MouseWheelEvent;
30

  
31 30
import org.gvsig.app.project.documents.layout.LayoutControl;
32 31
import org.gvsig.app.project.documents.layout.tools.listener.LayoutToolListener;
33 32
import org.gvsig.fmap.mapcontrol.tools.BehaviorException;
......
42 41

  
43 42
    private LayoutControl layout;
44 43

  
44
    @Override
45 45
    public abstract LayoutToolListener getListener();
46 46

  
47
    @Override
47 48
    public void paintComponent(Graphics g) {
48 49
        g.drawImage(getLayoutControl().getImage(), 0, 0, layout.getComponent());
49 50

  
......
56 57
            Color.black);
57 58
    }
58 59

  
60
    @Override
59 61
    public void setLayoutControl(LayoutControl lc) {
60 62
        layout = lc;
61 63
    }
62 64

  
65
    @Override
63 66
    public Image getImageCursor() {
64 67
        return getListener().getImageCursor();
65 68
    }
66 69

  
70
    @Override
67 71
    public LayoutControl getLayoutControl() {
68 72
        return layout;
69 73
    }
70 74

  
75
    @Override
71 76
    public void mouseClicked(MouseEvent e) throws BehaviorException {
72 77
    }
73 78

  
79
    @Override
74 80
    public void mouseEntered(MouseEvent e) throws BehaviorException {
75 81
    }
76 82

  
83
    @Override
77 84
    public void mouseExited(MouseEvent e) throws BehaviorException {
78 85
    }
79 86

  
87
    @Override
80 88
    public void mousePressed(MouseEvent e) throws BehaviorException {
81 89
        if (e.getButton() == MouseEvent.BUTTON1) {
82 90
            layout.setPointAnt();
......
84 92
        }
85 93
    }
86 94

  
95
    @Override
87 96
    public void mouseReleased(MouseEvent e) throws BehaviorException {
88 97
        if (e.getButton() != MouseEvent.BUTTON3) {
89 98
            layout.setLastPoint();
......
91 100
        }
92 101
    }
93 102

  
103
    @Override
94 104
    public void mouseDragged(MouseEvent e) throws BehaviorException {
95 105
        if (e.getButton() != MouseEvent.BUTTON3) {
96 106
            layout.setLastPoint();
97 107
        }
98 108
    }
99 109

  
110
    @Override
100 111
    public void mouseMoved(MouseEvent e) throws BehaviorException {
101 112
    }
102 113

  
114
    @Override
103 115
    public void mouseWheelMoved(MouseWheelEvent e) throws BehaviorException {
104 116
    }
105 117

  
118
    @Override
106 119
    public boolean isAdjustable() {
107 120
        return false;
108 121
    }
109
}
122
    }

Also available in: Unified diff