/[fenfire]/fenfire/org/fenfire/util/ControlBinding.java
ViewVC logotype

Diff of /fenfire/org/fenfire/util/ControlBinding.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by mudyc, Thu Jun 26 00:29:25 2003 UTC revision 1.10 by mudyc, Tue Jul 1 16:33:33 2003 UTC
# Line 67  public class ControlBinding { Line 67  public class ControlBinding {
67      }      }
68      public boolean hasPressState() { return pressState!=null; }      public boolean hasPressState() { return pressState!=null; }
69    
70        public void setPressStateByForce(MouseEvent event) {
71            pressState = event;
72        }
73    
74    
75      // keeping track of drags for specific object      // keeping track of drags for specific object
76      private Object accursedObj = null;      private Object accursedObj = null;
# Line 119  public class ControlBinding { Line 123  public class ControlBinding {
123                      return FAST;                      return FAST;
124                  } else {                  } else {
125                      c.controlPoint(x,y, scale);                      c.controlPoint(x,y, scale);
126                      return ANIMATE;                      return c.tryFast(); //ANIMATE;
127                  }                  }
128              }              }
129          }          }
# Line 136  public class ControlBinding { Line 140  public class ControlBinding {
140                      if (c.isChangeable())                      if (c.isChangeable())
141                          throw new Error("Clicks can't be used to measure of change.");                          throw new Error("Clicks can't be used to measure of change.");
142                      else c.controlPoint(x, y, scale);                      else c.controlPoint(x, y, scale);
143                      return ANIMATE;                      return c.tryFast(); //ANIMATE;
144                  }                  }
145              }              }
146          }          }
# Line 175  public class ControlBinding { Line 179  public class ControlBinding {
179                          ret = FAST;                          ret = FAST;
180                      }                      }
181                      else c.controlPoint(x, y, scale);                      else c.controlPoint(x, y, scale);
182                      ret = ANIMATE;                      ret = c.tryFast();  //ANIMATE;
183                  }                  }
184              }              }
185              lastEvent = event;              lastEvent = event;
# Line 275  public class ControlBinding { Line 279  public class ControlBinding {
279    
280      public interface Controller {      public interface Controller {
281          boolean isChangeable();          boolean isChangeable();
282            boolean tryFast();
283          void change(float x, float y);          void change(float x, float y);
284          void controlPoint(float x, float y, float scale);          void controlPoint(float x, float y, float scale);
285          void set(Object obj, VobScene oldVS);          void set(Object obj, VobScene oldVS);
# Line 283  public class ControlBinding { Line 288  public class ControlBinding {
288      public static abstract class AbstractController implements Controller {      public static abstract class AbstractController implements Controller {
289          public AbstractController() {}          public AbstractController() {}
290          public abstract boolean isChangeable();          public abstract boolean isChangeable();
291            public boolean tryFast() { return isChangeable(); }
292    
293          public void change(float x, float y) { }          public void change(float x, float y) {
294          public void controlPoint(float x, float y, float scale) {}              if (dbg) p("change");
295            }
296            public void controlPoint(float x, float y, float scale) {
297                if (dbg) p("controlPoint");
298            }
299    
300          // need to be public to be accessible from Python...          // need to be public to be accessible from Python...
301          public Object obj = null;          public Object obj = null;

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26