Revision 3832 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/smc/PointCADToolContext.java

View differences:

PointCADToolContext.java
6 6
package com.iver.cit.gvsig.gui.cad.tools.smc;
7 7

  
8 8
import com.iver.cit.gvsig.gui.cad.tools.PointCADTool;
9
import com.iver.cit.gvsig.fmap.layers.FBitSet;
10 9

  
11 10
public final class PointCADToolContext
12 11
    extends statemap.FSMContext
......
24 23
        ExecuteMap.Initial.Entry(this);
25 24
    }
26 25

  
27
    public void addPoint(FBitSet sel, double pointX, double pointY)
26
    public void addPoint(double pointX, double pointY)
28 27
    {
29 28
        _transition = "addPoint";
30
        getState().addPoint(this, sel, pointX, pointY);
29
        getState().addPoint(this, pointX, pointY);
31 30
        _transition = "";
32 31
        return;
33 32
    }
......
74 73
        protected void Entry(PointCADToolContext context) {}
75 74
        protected void Exit(PointCADToolContext context) {}
76 75

  
77
        protected void addPoint(PointCADToolContext context, FBitSet sel, double pointX, double pointY)
76
        protected void addPoint(PointCADToolContext context, double pointX, double pointY)
78 77
        {
79 78
            Default(context);
80 79
        }
......
158 157
                return;
159 158
            }
160 159

  
161
            protected void addPoint(PointCADToolContext context, FBitSet sel, double pointX, double pointY)
160
            protected void addPoint(PointCADToolContext context, double pointX, double pointY)
162 161
            {
163 162
                PointCADTool ctxt = context.getOwner();
164 163

  
......
168 167
                try
169 168
                {
170 169
                    ctxt.setQuestion("Insertar punto");
171
                    ctxt.addPoint(sel, pointX, pointY);
170
                    ctxt.addPoint(pointX, pointY);
172 171
                }
173 172
                finally
174 173
                {
......
195 194
                super (name, id);
196 195
            }
197 196

  
198
            protected void addPoint(PointCADToolContext context, FBitSet sel, double pointX, double pointY)
197
            protected void addPoint(PointCADToolContext context, double pointX, double pointY)
199 198
            {
200 199
                PointCADTool ctxt = context.getOwner();
201 200

  
......
205 204
                try
206 205
                {
207 206
                    ctxt.setQuestion("Insertar punto");
208
                    ctxt.addPoint(sel, pointX, pointY);
207
                    ctxt.addPoint(pointX, pointY);
209 208
                }
210 209
                finally
211 210
                {

Also available in: Unified diff