diff --git a/src/br/com/translate/Main.java b/src/br/com/translate/Main.java index a3e8f73..adc89a7 100644 --- a/src/br/com/translate/Main.java +++ b/src/br/com/translate/Main.java @@ -4,6 +4,11 @@ import br.com.translate.view.MainWindow; +/** + * + * @author Gabriel Tavares + * + */ public class Main { public static void main(String[] args) { diff --git a/src/br/com/translate/business/ListenerEarthTranslate.java b/src/br/com/translate/business/ListenerEarthTranslate.java index 17125b1..3a94496 100644 --- a/src/br/com/translate/business/ListenerEarthTranslate.java +++ b/src/br/com/translate/business/ListenerEarthTranslate.java @@ -2,6 +2,13 @@ import java.awt.Rectangle; +/** + * Listener responsavel por fazer a comunicacao + * da Thread com a TelaPrincipal + * + * @author Gabriel Tavares + * + */ public interface ListenerEarthTranslate { public void update(Rectangle r); diff --git a/src/br/com/translate/business/ThreadEarthTranslate.java b/src/br/com/translate/business/ThreadEarthTranslate.java index 3eba723..75f0a1b 100644 --- a/src/br/com/translate/business/ThreadEarthTranslate.java +++ b/src/br/com/translate/business/ThreadEarthTranslate.java @@ -4,6 +4,13 @@ import java.awt.Rectangle; import java.util.Random; +/** + * Thread responsavel por fazer a Terra girar em + * torno do Sol. + * + * @author Gabriel Tavares + * + */ public class ThreadEarthTranslate implements Runnable{ private boolean isRunning = false; diff --git a/src/br/com/translate/util/Histogram1D.java b/src/br/com/translate/util/Histogram1D.java index 1e24c23..0fdad3a 100644 --- a/src/br/com/translate/util/Histogram1D.java +++ b/src/br/com/translate/util/Histogram1D.java @@ -9,6 +9,12 @@ import java.awt.Graphics2D; import java.awt.image.BufferedImage; +/** + * Cria o Histograma de uma Imagem + * + * @author Gabriel Tavares + * + */ public class Histogram1D { int numberOfBins = 256; diff --git a/src/br/com/translate/util/OpenCvUtil.java b/src/br/com/translate/util/OpenCvUtil.java index 5946046..d421b27 100644 --- a/src/br/com/translate/util/OpenCvUtil.java +++ b/src/br/com/translate/util/OpenCvUtil.java @@ -16,6 +16,12 @@ import static com.googlecode.javacv.cpp.opencv_legacy.*; import static com.googlecode.javacv.cpp.opencv_highgui.*; +/** + * Classe utilitaria com as funcoes do OpenCV + * + * @author Gabriel Tavares + * + */ public class OpenCvUtil { public static IplImage grayToBinaryImage(IplImage grayImage, boolean isCopy) { diff --git a/src/br/com/translate/view/MainWindow.java b/src/br/com/translate/view/MainWindow.java index 0156844..2e98d67 100644 --- a/src/br/com/translate/view/MainWindow.java +++ b/src/br/com/translate/view/MainWindow.java @@ -21,7 +21,7 @@ import com.googlecode.javacv.cpp.opencv_core.IplImage; /** - * Classe de EVENTOS da TelaPrincipal para iteracao com o usuario + * Classe de eventos da TelaPrincipal para iteracao com o usuario * * @author: Gabriel Tavares * @@ -30,7 +30,7 @@ public class MainWindow extends MainWindowView implements ListenerEarthTranslate private static final long serialVersionUID = 1L; - // Unica instancia da tela + // Singleton private static MainWindow instance = null; private ThreadEarthTranslate threadEarthTranslate; diff --git a/src/br/com/translate/view/MainWindowView.java b/src/br/com/translate/view/MainWindowView.java index ce83e60..4bd37b2 100644 --- a/src/br/com/translate/view/MainWindowView.java +++ b/src/br/com/translate/view/MainWindowView.java @@ -25,7 +25,7 @@ import br.com.translate.util.OpenCvUtil; /** - * Classe de LAYOUT da TelaPrincipal + * Classe de layout da TelaPrincipal * * @author: Gabriel Tavares *