Thread: [Japi-cvs] SF.net SVN: japi:[832] progs/jtype/trunk/src/prj/net/sf/japi/jtype
Status: Beta
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2009-02-14 23:01:11
|
Revision: 832
http://japi.svn.sourceforge.net/japi/?rev=832&view=rev
Author: christianhujer
Date: 2009-02-14 21:35:07 +0000 (Sat, 14 Feb 2009)
Log Message:
-----------
Updated copyright statements in source code.
Modified Paths:
--------------
progs/jtype/trunk/src/prj/net/sf/japi/jtype/Helper.java
progs/jtype/trunk/src/prj/net/sf/japi/jtype/JType.java
progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java
progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java
progs/jtype/trunk/src/prj/net/sf/japi/jtype/action.properties
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/Helper.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/Helper.java 2009-02-14 21:34:43 UTC (rev 831)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/Helper.java 2009-02-14 21:35:07 UTC (rev 832)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2009 Christian Hujer
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
package net.sf.japi.jtype;
import java.io.BufferedReader;
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/JType.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/JType.java 2009-02-14 21:34:43 UTC (rev 831)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/JType.java 2009-02-14 21:35:07 UTC (rev 832)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2009 Christian Hujer
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
package net.sf.japi.jtype;
import java.awt.BorderLayout;
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java 2009-02-14 21:34:43 UTC (rev 831)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java 2009-02-14 21:35:07 UTC (rev 832)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2009 Christian Hujer
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
package net.sf.japi.jtype;
import javax.swing.JComponent;
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java 2009-02-14 21:34:43 UTC (rev 831)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java 2009-02-14 21:35:07 UTC (rev 832)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2009 Christian Hujer
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
package net.sf.japi.jtype;
import javax.swing.JComponent;
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/action.properties
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/action.properties 2009-02-14 21:34:43 UTC (rev 831)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/action.properties 2009-02-14 21:35:07 UTC (rev 832)
@@ -1 +1,18 @@
+#
+# Copyright (C) 2009 Christian Hujer
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
reset.text=Reset
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-02-22 10:06:21
|
Revision: 1045
http://japi.svn.sourceforge.net/japi/?rev=1045&view=rev
Author: christianhujer
Date: 2009-02-22 10:06:18 +0000 (Sun, 22 Feb 2009)
Log Message:
-----------
Fixed checkstyle issues.
Modified Paths:
--------------
progs/jtype/trunk/src/prj/net/sf/japi/jtype/Helper.java
progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java
progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/Helper.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/Helper.java 2009-02-22 10:05:57 UTC (rev 1044)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/Helper.java 2009-02-22 10:06:18 UTC (rev 1045)
@@ -36,7 +36,7 @@
// - RE1 (alte und neue Buchstaben) passt
// - RE1 (alte und neue Buchstaben) passt, RE2 (nur alte Buchstaben) passt nicht
// - Buchstabenkombinationen
-public class Helper {
+public final class Helper {
/** Utility class - do not instanciate. */
private Helper() {
@@ -99,7 +99,7 @@
final List<String> lines = new ArrayList<String>();
@SuppressWarnings({"IOResourceOpenedButNotSafelyClosed"})
final BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
- for (String line; (line = in.readLine()) != null; ) {
+ for (String line; (line = in.readLine()) != null;) {
lines.add(line);
}
return lines;
@@ -119,13 +119,13 @@
}
/** Random number generator. */
- private static final Random random = new Random();
+ private static final Random RANDOM = new Random();
/** Returns a random String from a List of Strings.
* @param strings List from which a random String shall be returned.
* @return A random String from that List.
*/
public static String random(@NotNull final List<String> strings) {
- return strings.get(random.nextInt(strings.size()));
+ return strings.get(RANDOM.nextInt(strings.size()));
}
}
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java 2009-02-22 10:05:57 UTC (rev 1044)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java 2009-02-22 10:06:18 UTC (rev 1045)
@@ -57,6 +57,7 @@
/** The sum of time all keystrokes took alltogether so far. */
private long timeSums;
+ /** Reflection fields. */
private final Collection<ReflectionField> reflectionFields = new ArrayList<ReflectionField>();
/** Creates a PerformancePane. */
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java 2009-02-22 10:05:57 UTC (rev 1044)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java 2009-02-22 10:06:18 UTC (rev 1045)
@@ -23,7 +23,8 @@
import java.lang.reflect.InvocationTargetException;
import java.awt.GridBagLayout;
import java.util.Locale;
-import org.jetbrains.annotations.NotNull;import org.jetbrains.annotations.Nullable;
+import org.jetbrains.annotations.NotNull;
+import org.jetbrains.annotations.Nullable;
/** A component that displays a property value along with a label.
* It uses reflection to get the object's value.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-02-24 02:28:40
|
Revision: 1180
http://japi.svn.sourceforge.net/japi/?rev=1180&view=rev
Author: christianhujer
Date: 2009-02-24 02:27:52 +0000 (Tue, 24 Feb 2009)
Log Message:
-----------
Fixed javadoc issues.
Modified Paths:
--------------
progs/jtype/trunk/src/prj/net/sf/japi/jtype/JType.java
progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java
progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/JType.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/JType.java 2009-02-24 02:27:09 UTC (rev 1179)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/JType.java 2009-02-24 02:27:52 UTC (rev 1180)
@@ -53,9 +53,10 @@
/** The about dialog.
* This field is lazy initialized in {@link #about()}.
+ * @serial exclude
*/
@SuppressWarnings({"InstanceVariableMayNotBeInitialized"})
- private AboutDialog aboutDialog;
+ private transient AboutDialog aboutDialog;
/** Main program.
* @param args Commandline arguments (currently ignered).
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java 2009-02-24 02:27:09 UTC (rev 1179)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java 2009-02-24 02:27:52 UTC (rev 1180)
@@ -42,22 +42,33 @@
/** Delay after which a keystroke will be treated as new key after a pause.
* This allows users to pause their excercises without having to explicitely stop the program.
+ * @serial include
*/
private final int pauseDetectionDelay = DEFAULT_PAUSE_DETECTION_DELAY;
- /** The number of keys typed correctly. */
+ /** The number of keys typed correctly.
+ * @serial include
+ */
private int keyTypes;
- /** The number of keys typed wrongly. */
+ /** The number of keys typed wrongly.
+ * @serial include
+ */
private int correctionTypes;
- /** The timestamp of the previous keystroke. */
+ /** The timestamp of the previous keystroke.
+ * @serial include
+ */
private long lastTime;
- /** The sum of time all keystrokes took alltogether so far. */
+ /** The sum of time all keystrokes took alltogether so far.
+ * @serial include
+ */
private long timeSums;
- /** Reflection fields. */
+ /** Reflection fields.
+ * @serial include
+ */
private final Collection<ReflectionField> reflectionFields = new ArrayList<ReflectionField>();
/** Creates a PerformancePane. */
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java 2009-02-24 02:27:09 UTC (rev 1179)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java 2009-02-24 02:27:52 UTC (rev 1180)
@@ -32,16 +32,24 @@
*/
public class ReflectionField extends JComponent {
- /** The label to update. */
+ /** The label to update.
+ * @serial include
+ */
private final JLabel label;
- /** The format to create the label text. */
+ /** The format to create the label text.
+ * @serial include
+ */
private final String format;
- /** The target object from which the field value will be read. */
+ /** The target object from which the field value will be read.
+ * @serial include
+ */
private final Object target;
- /** The method used to retrieve the value of the property. */
+ /** The method used to retrieve the value of the property.
+ * @serial include
+ */
private final Method getter;
/** Creates a ReflactionField.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-03-02 02:22:12
|
Revision: 1245
http://japi.svn.sourceforge.net/japi/?rev=1245&view=rev
Author: christianhujer
Date: 2009-03-02 01:31:20 +0000 (Mon, 02 Mar 2009)
Log Message:
-----------
Add @since information for classes and packages.
Modified Paths:
--------------
progs/jtype/trunk/src/prj/net/sf/japi/jtype/Helper.java
progs/jtype/trunk/src/prj/net/sf/japi/jtype/JType.java
progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java
progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/Helper.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/Helper.java 2009-03-02 01:31:00 UTC (rev 1244)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/Helper.java 2009-03-02 01:31:20 UTC (rev 1245)
@@ -31,6 +31,7 @@
/** Utility methods for Strings.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
+ * @since 0.1
*/
// mögliche Suchstrategien:
// - RE1 (alte und neue Buchstaben) passt
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/JType.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/JType.java 2009-03-02 01:31:00 UTC (rev 1244)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/JType.java 2009-03-02 01:31:20 UTC (rev 1245)
@@ -33,6 +33,7 @@
/** JType is a program that measures the speed of typing.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
+ * @since 0.1
*/
// TODO:2009-02-23:christianhujer:More detailled statistics.
// TODO:2009-02-23:christianhujer:Excercise texts.
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java 2009-03-02 01:31:00 UTC (rev 1244)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/PerformancePane.java 2009-03-02 01:31:20 UTC (rev 1245)
@@ -31,6 +31,7 @@
/** Display for simple typing statistics.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
+ * @since 0.1
*/
public class PerformancePane extends JComponent implements KeyListener {
Modified: progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java
===================================================================
--- progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java 2009-03-02 01:31:00 UTC (rev 1244)
+++ progs/jtype/trunk/src/prj/net/sf/japi/jtype/ReflectionField.java 2009-03-02 01:31:20 UTC (rev 1245)
@@ -29,6 +29,7 @@
/** A component that displays a property value along with a label.
* It uses reflection to get the object's value.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
+ * @since 0.1
*/
public class ReflectionField extends JComponent {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|