Move all modes to package kaka.cakelight.mode
authorTomas Wenström <tomas.wenstrom@gmail.com>
Sun, 24 Nov 2019 17:28:27 +0000 (18:28 +0100)
committerTomas Wenström <tomas.wenstrom@gmail.com>
Sun, 24 Nov 2019 17:28:27 +0000 (18:28 +0100)
src/kaka/cakelight/CakeLight.java
src/kaka/cakelight/Console.java
src/kaka/cakelight/GuiTest.java
src/kaka/cakelight/Main.java
src/kaka/cakelight/mode/AmbientMode.java [moved from src/kaka/cakelight/AmbientMode.java with 97% similarity]
src/kaka/cakelight/mode/Mode.java [moved from src/kaka/cakelight/Mode.java with 81% similarity]
src/kaka/cakelight/mode/SingleColorMode.java [moved from src/kaka/cakelight/SingleColorMode.java with 73% similarity]
src/kaka/cakelight/mode/SmoothVideoMode.java [moved from src/kaka/cakelight/SmoothVideoMode.java with 83% similarity]
src/kaka/cakelight/mode/VideoMode.java [moved from src/kaka/cakelight/VideoMode.java with 91% similarity]

index c2f896d..4b37bd7 100644 (file)
@@ -1,5 +1,6 @@
 package kaka.cakelight;
 
+import kaka.cakelight.mode.Mode;
 import org.jnativehook.GlobalScreen;
 import org.jnativehook.NativeHookException;
 import org.jnativehook.keyboard.NativeKeyAdapter;
index 84ca61e..caf8195 100644 (file)
@@ -1,5 +1,9 @@
 package kaka.cakelight;
 
+import kaka.cakelight.mode.AmbientMode;
+import kaka.cakelight.mode.SingleColorMode;
+import kaka.cakelight.mode.VideoMode;
+
 import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStreamReader;
index 0d199c2..8c1516c 100644 (file)
@@ -9,6 +9,7 @@ import javafx.scene.layout.Pane;
 import javafx.scene.paint.Color;
 import javafx.scene.paint.Paint;
 import javafx.stage.Stage;
+import kaka.cakelight.mode.AmbientMode;
 import org.opencv.core.Core;
 import org.opencv.core.Mat;
 
index dd3c1f7..beb245b 100644 (file)
@@ -1,5 +1,7 @@
 package kaka.cakelight;
 
+import kaka.cakelight.mode.AmbientMode;
+import kaka.cakelight.mode.SmoothVideoMode;
 import org.opencv.core.Core;
 
 import java.io.FileOutputStream;
similarity index 97%
rename from src/kaka/cakelight/AmbientMode.java
rename to src/kaka/cakelight/mode/AmbientMode.java
index 35ec322..afe36ab 100644 (file)
@@ -1,5 +1,8 @@
-package kaka.cakelight;
+package kaka.cakelight.mode;
 
+import kaka.cakelight.Color;
+import kaka.cakelight.Configuration;
+import kaka.cakelight.LedFrame;
 import kaka.cakelight.util.SimplexNoise3D;
 
 public class AmbientMode extends Mode { // TODO split into DynamicAmbient and StaticAmbient?
similarity index 81%
rename from src/kaka/cakelight/Mode.java
rename to src/kaka/cakelight/mode/Mode.java
index ad9bc8d..5ece5ea 100644 (file)
@@ -1,4 +1,7 @@
-package kaka.cakelight;
+package kaka.cakelight.mode;
+
+import kaka.cakelight.Configuration;
+import kaka.cakelight.LedFrame;
 
 import java.util.function.Consumer;
 
similarity index 73%
rename from src/kaka/cakelight/SingleColorMode.java
rename to src/kaka/cakelight/mode/SingleColorMode.java
index f72d773..36c752a 100644 (file)
@@ -1,4 +1,8 @@
-package kaka.cakelight;
+package kaka.cakelight.mode;
+
+import kaka.cakelight.Color;
+import kaka.cakelight.Configuration;
+import kaka.cakelight.LedFrame;
 
 public class SingleColorMode extends Mode {
     private Color color;
similarity index 83%
rename from src/kaka/cakelight/SmoothVideoMode.java
rename to src/kaka/cakelight/mode/SmoothVideoMode.java
index e9ef442..53b4860 100644 (file)
@@ -1,4 +1,8 @@
-package kaka.cakelight;
+package kaka.cakelight.mode;
+
+import kaka.cakelight.Color;
+import kaka.cakelight.Configuration;
+import kaka.cakelight.LedFrame;
 
 public class SmoothVideoMode extends VideoMode {
     private LedFrame frame;
similarity index 91%
rename from src/kaka/cakelight/VideoMode.java
rename to src/kaka/cakelight/mode/VideoMode.java
index 134fa2d..91a9f04 100644 (file)
@@ -1,4 +1,9 @@
-package kaka.cakelight;
+package kaka.cakelight.mode;
+
+import kaka.cakelight.Configuration;
+import kaka.cakelight.FrameGrabber;
+import kaka.cakelight.VideoDeviceListener;
+import kaka.cakelight.VideoFrame;
 
 import java.io.File;
 import java.io.IOException;