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

View differences:

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

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

  
11 10
public final class ArcCADToolContext
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(ArcCADToolContext context) {}
75 74
        protected void Exit(ArcCADToolContext context) {}
76 75

  
77
        protected void addPoint(ArcCADToolContext context, FBitSet sel, double pointX, double pointY)
76
        protected void addPoint(ArcCADToolContext context, double pointX, double pointY)
78 77
        {
79 78
            Default(context);
80 79
        }
......
162 161
                return;
163 162
            }
164 163

  
165
            protected void addPoint(ArcCADToolContext context, FBitSet sel, double pointX, double pointY)
164
            protected void addPoint(ArcCADToolContext context, double pointX, double pointY)
166 165
            {
167 166
                ArcCADTool ctxt = context.getOwner();
168 167

  
......
172 171
                try
173 172
                {
174 173
                    ctxt.setQuestion("Insertar segundo punto");
175
                    ctxt.addPoint(sel, pointX, pointY);
174
                    ctxt.addPoint(pointX, pointY);
176 175
                }
177 176
                finally
178 177
                {
......
199 198
                super (name, id);
200 199
            }
201 200

  
202
            protected void addPoint(ArcCADToolContext context, FBitSet sel, double pointX, double pointY)
201
            protected void addPoint(ArcCADToolContext context, double pointX, double pointY)
203 202
            {
204 203
                ArcCADTool ctxt = context.getOwner();
205 204

  
......
209 208
                try
210 209
                {
211 210
                    ctxt.setQuestion("Insertar ultimo punto");
212
                    ctxt.addPoint(sel, pointX, pointY);
211
                    ctxt.addPoint(pointX, pointY);
213 212
                }
214 213
                finally
215 214
                {
......
236 235
                super (name, id);
237 236
            }
238 237

  
239
            protected void addPoint(ArcCADToolContext context, FBitSet sel, double pointX, double pointY)
238
            protected void addPoint(ArcCADToolContext context, double pointX, double pointY)
240 239
            {
241 240
                ArcCADTool ctxt = context.getOwner();
242 241

  
......
245 244
                context.clearState();
246 245
                try
247 246
                {
248
                    ctxt.addPoint(sel, pointX, pointY);
247
                    ctxt.addPoint(pointX, pointY);
249 248
                    ctxt.end();
250 249
                }
251 250
                finally

Also available in: Unified diff