From 69bb1c6b36457dd285cd2a481f0212e225162595 Mon Sep 17 00:00:00 2001 From: "phishman3579@gmail.com" Date: Thu, 15 Dec 2011 13:22:35 +0000 Subject: [PATCH] Updated some comments and added javadocs git-svn-id: https://android-motion-detection.googlecode.com/svn/trunk@24 996b93ed-3e4d-4b21-1044-74bd19560d1d --- create_javadocs.sh | 3 +++ src/com/jwetherell/motion_detection/data/GlobalData.java | 2 +- src/com/jwetherell/motion_detection/data/Preferences.java | 4 +++- .../jwetherell/motion_detection/image/ImageProcessing.java | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100755 create_javadocs.sh diff --git a/create_javadocs.sh b/create_javadocs.sh new file mode 100755 index 0000000..5e0f33d --- /dev/null +++ b/create_javadocs.sh @@ -0,0 +1,3 @@ +#1/bin/bash + +javadoc -author -linkoffline http://d.android.com/reference file:/usr/local/android-sdk-linux_86/docs/reference -classpath /usr/local/android-sdk-linux_86/platforms/android-4/android.jar -d javadocs/ -sourcepath `find . -name *.java` diff --git a/src/com/jwetherell/motion_detection/data/GlobalData.java b/src/com/jwetherell/motion_detection/data/GlobalData.java index 3c0f7b3..75c727f 100644 --- a/src/com/jwetherell/motion_detection/data/GlobalData.java +++ b/src/com/jwetherell/motion_detection/data/GlobalData.java @@ -7,7 +7,7 @@ * * @author Justin Wetherell */ -public class GlobalData { +public abstract class GlobalData { private GlobalData() { }; private static final AtomicBoolean phoneInMotion = new AtomicBoolean(false); diff --git a/src/com/jwetherell/motion_detection/data/Preferences.java b/src/com/jwetherell/motion_detection/data/Preferences.java index f7375d8..4a2bbeb 100644 --- a/src/com/jwetherell/motion_detection/data/Preferences.java +++ b/src/com/jwetherell/motion_detection/data/Preferences.java @@ -6,7 +6,9 @@ * * @author Justin Wetherell */ -public class Preferences { +public abstract class Preferences { + private Preferences() { } + //Which motion detection to use public static boolean USE_RGB = true; public static boolean USE_LUMA = false; diff --git a/src/com/jwetherell/motion_detection/image/ImageProcessing.java b/src/com/jwetherell/motion_detection/image/ImageProcessing.java index 596e8b5..16d6bcb 100644 --- a/src/com/jwetherell/motion_detection/image/ImageProcessing.java +++ b/src/com/jwetherell/motion_detection/image/ImageProcessing.java @@ -27,7 +27,7 @@ private ImageProcessing() { } /** * Get RGB values from pixel. * @param pixel Integer representation of a pixel. - * @return + * @return float array of a,r,g,b values. */ public static float[] getARGB(int pixel) { int a = (pixel >> 24) & 0xff; @@ -212,7 +212,7 @@ public static Bitmap rotate(Bitmap bmp, int degrees) { /** * Rotate the given image in byte array format by the given degrees. - * @param bmp Bitmap to rotate. + * @param data Bitmap to rotate in byte array form. * @param degrees Degrees to rotate. * @return Byte array format of an image which was rotated. */