Browse Source

Fixed notification

unknown 12 years ago
parent
commit
c7fb0b7e75
2 changed files with 22 additions and 1 deletions
  1. 18
    1
      Cube Control/cubeWorker.java
  2. 4
    0
      Cube Control/frame.java

+ 18
- 1
Cube Control/cubeWorker.java View File

@@ -22,7 +22,8 @@
22 22
  */
23 23
 
24 24
 public class cubeWorker {
25
-
25
+    final int UP = 0;
26
+    final int DOWN = 1;
26 27
     cubeWorker() {
27 28
 
28 29
     }
@@ -62,6 +63,14 @@ public class cubeWorker {
62 63
 
63 64
     }
64 65
     
66
+    public void moveAnimation(int dir){
67
+      if (dir == UP){
68
+        //animation moved up
69
+      } else if (dir == DOWN){
70
+        //animation moved down
71
+      }
72
+    }
73
+    
65 74
     // Returns how many frames are in the current animation
66 75
     public int numOfFrames() {
67 76
 
@@ -99,6 +108,14 @@ public class cubeWorker {
99 108
 
100 109
     }
101 110
     
111
+    public void moveFrame(int dir){
112
+      if (dir == UP){
113
+        //animation moved up
114
+      } else if (dir == DOWN){
115
+        //animation moved down
116
+      }
117
+    }
118
+    
102 119
     // Loads an animation file into this object
103 120
     public int loadState(String path) {
104 121
 

+ 4
- 0
Cube Control/frame.java View File

@@ -395,6 +395,7 @@ public class frame extends JFrame {
395 395
             frameListModel.set(i, frameListModel.get(i - 1));
396 396
             frameListModel.set(i - 1, tmp);
397 397
             frameList.setSelectedIndex(i - 1);
398
+            worker.moveFrame(worker.UP);
398 399
          }
399 400
   }
400 401
 
@@ -405,6 +406,7 @@ public class frame extends JFrame {
405 406
             frameListModel.set(i, frameListModel.get(i + 1));
406 407
             frameListModel.set(i + 1, tmp);
407 408
             frameList.setSelectedIndex(i + 1);
409
+            worker.moveFrame(worker.DOWN);
408 410
          }
409 411
   }
410 412
 
@@ -425,6 +427,7 @@ public class frame extends JFrame {
425 427
             jList2Model.set(i, jList2Model.get(i - 1));
426 428
             jList2Model.set(i - 1, tmp);
427 429
             jList2.setSelectedIndex(i - 1);
430
+            worker.moveAnimation(worker.UP);
428 431
          }
429 432
   }
430 433
 
@@ -435,6 +438,7 @@ public class frame extends JFrame {
435 438
             jList2Model.set(i, jList2Model.get(i + 1));
436 439
             jList2Model.set(i + 1, tmp);
437 440
             jList2.setSelectedIndex(i + 1);
441
+            worker.moveAnimation(worker.DOWN);
438 442
          }
439 443
   }
440 444
 

Loading…
Cancel
Save