summaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-01-22 03:16:09 +0100
committerSven Gothel <[email protected]>2023-01-22 03:16:09 +0100
commit06b1563dc84125ab1c589499f30034162ddca0c8 (patch)
tree4011918cd5ed05209a1c66beabab57fb44f33db1 /src/test/com/jogamp/opengl
parent1711008b95534d1bf3c87570990253c0fa7cd9f6 (diff)
Minor auto formatting: @Override, ..
Diffstat (limited to 'src/test/com/jogamp/opengl')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextWithJTabbedPaneAWT.java17
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/event/TestParentingFocus02SwingAWTRobot.java4
-rw-r--r--src/test/com/jogamp/opengl/test/junit/util/AWTMouseAdapter.java11
-rw-r--r--src/test/com/jogamp/opengl/test/junit/util/NEWTMouseAdapter.java11
4 files changed, 38 insertions, 5 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextWithJTabbedPaneAWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextWithJTabbedPaneAWT.java
index b45b94e41..3b29c7a77 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextWithJTabbedPaneAWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextWithJTabbedPaneAWT.java
@@ -212,6 +212,7 @@ public class TestSharedContextWithJTabbedPaneAWT extends UITestCase {
f.setTitle("Shared GLContext AWT GLCanvas JTabbedPane");
final DemoInstance demo = new DemoInstance(f);
SwingUtilities.invokeLater(new Runnable() {
+ @Override
public void run() {
System.err.println("XXX SetVisible XXX");
f.setVisible(true);
@@ -223,35 +224,41 @@ public class TestSharedContextWithJTabbedPaneAWT extends UITestCase {
}
} else {
javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
+ @Override
public void run() {
demo.tabbedPanel.setSelectedIndex(0);
}});
Thread.sleep(durationPerTest/4);
javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
+ @Override
public void run() {
demo.tabbedPanel.setSelectedIndex(1);
}});
Thread.sleep(durationPerTest/4);
javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
+ @Override
public void run() {
demo.tabbedPanel.setSelectedIndex(0);
}});
Thread.sleep(durationPerTest/4);
javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
+ @Override
public void run() {
demo.tabbedPanel.setSelectedIndex(1);
}});
Thread.sleep(durationPerTest/4);
}
- SwingUtilities.invokeLater(new Runnable() {
- public void run() {
- System.err.println("XXX SetVisible XXX");
- f.dispose();
- } });
+ SwingUtilities.invokeLater(new Runnable() {
+ // SwingUtilities.invokeAndWait(new Runnable() {
+ @Override
+ public void run() {
+ System.err.println("XXX SetVisible XXX");
+ f.dispose();
+ } });
}
public static void main(final String args[]) {
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/event/TestParentingFocus02SwingAWTRobot.java b/src/test/com/jogamp/opengl/test/junit/newt/event/TestParentingFocus02SwingAWTRobot.java
index b6a95caff..03e5176c5 100644
--- a/src/test/com/jogamp/opengl/test/junit/newt/event/TestParentingFocus02SwingAWTRobot.java
+++ b/src/test/com/jogamp/opengl/test/junit/newt/event/TestParentingFocus02SwingAWTRobot.java
@@ -84,11 +84,13 @@ public class TestParentingFocus02SwingAWTRobot extends UITestCase {
final JFrame f = new JFrame();
javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
+ @Override
public void run() {
f.setSize(100,100);
f.setVisible(true);
} } );
javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
+ @Override
public void run() {
f.dispose();
} } );
@@ -168,6 +170,7 @@ public class TestParentingFocus02SwingAWTRobot extends UITestCase {
jFrame1.setContentPane(jPanel1);
jFrame1.setSize(width, height);
javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
+ @Override
public void run() {
jFrame1.setVisible(true);
} } );
@@ -273,6 +276,7 @@ public class TestParentingFocus02SwingAWTRobot extends UITestCase {
Assert.assertEquals(false, animator1.isAnimating());
SwingUtilities.invokeAndWait(new Runnable() {
+ @Override
public void run() {
jFrame1.setVisible(false);
jPanel1.remove(container1);
diff --git a/src/test/com/jogamp/opengl/test/junit/util/AWTMouseAdapter.java b/src/test/com/jogamp/opengl/test/junit/util/AWTMouseAdapter.java
index 2a4f7a71f..c11ec86fd 100644
--- a/src/test/com/jogamp/opengl/test/junit/util/AWTMouseAdapter.java
+++ b/src/test/com/jogamp/opengl/test/junit/util/AWTMouseAdapter.java
@@ -46,28 +46,35 @@ public class AWTMouseAdapter extends java.awt.event.MouseAdapter implements Inpu
reset();
}
+ @Override
public synchronized void setVerbose(final boolean v) { verbose = v; }
+ @Override
public synchronized boolean isPressed() {
return pressed;
}
+ @Override
public synchronized int getCount() {
return mouseClicked;
}
+ @Override
public synchronized int getConsumedCount() {
return consumed;
}
+ @Override
public synchronized List<EventObject> copyQueue() {
return new ArrayList<EventObject>(queue);
}
+ @Override
public synchronized int getQueueSize() {
return queue.size();
}
+ @Override
public synchronized void reset() {
mouseClicked = 0;
consumed = 0;
@@ -75,6 +82,7 @@ public class AWTMouseAdapter extends java.awt.event.MouseAdapter implements Inpu
queue.clear();
}
+ @Override
public synchronized void mousePressed(final MouseEvent e) {
pressed = true;
queue.add(e);
@@ -83,6 +91,7 @@ public class AWTMouseAdapter extends java.awt.event.MouseAdapter implements Inpu
}
}
+ @Override
public synchronized void mouseReleased(final MouseEvent e) {
pressed = false;
queue.add(e);
@@ -91,6 +100,7 @@ public class AWTMouseAdapter extends java.awt.event.MouseAdapter implements Inpu
}
}
+ @Override
public synchronized void mouseClicked(final java.awt.event.MouseEvent e) {
mouseClicked+=e.getClickCount();
if(e.isConsumed()) {
@@ -102,6 +112,7 @@ public class AWTMouseAdapter extends java.awt.event.MouseAdapter implements Inpu
}
}
+ @Override
public String toString() { return prefix+"[pressed "+pressed+", clicked "+mouseClicked+", consumed "+consumed+"]"; }
}
diff --git a/src/test/com/jogamp/opengl/test/junit/util/NEWTMouseAdapter.java b/src/test/com/jogamp/opengl/test/junit/util/NEWTMouseAdapter.java
index bd191dd2c..0370767ed 100644
--- a/src/test/com/jogamp/opengl/test/junit/util/NEWTMouseAdapter.java
+++ b/src/test/com/jogamp/opengl/test/junit/util/NEWTMouseAdapter.java
@@ -49,28 +49,35 @@ public class NEWTMouseAdapter extends MouseAdapter implements InputEventCountAda
reset();
}
+ @Override
public synchronized void setVerbose(final boolean v) { verbose = v; }
+ @Override
public synchronized boolean isPressed() {
return pressed;
}
+ @Override
public synchronized int getCount() {
return mouseClicked;
}
+ @Override
public synchronized int getConsumedCount() {
return consumed;
}
+ @Override
public synchronized List<EventObject> copyQueue() {
return new ArrayList<EventObject>(queue);
}
+ @Override
public synchronized int getQueueSize() {
return queue.size();
}
+ @Override
public synchronized void reset() {
mouseClicked = 0;
consumed = 0;
@@ -78,6 +85,7 @@ public class NEWTMouseAdapter extends MouseAdapter implements InputEventCountAda
queue.clear();
}
+ @Override
public synchronized void mousePressed(final MouseEvent e) {
pressed = true;
queue.add(e);
@@ -86,6 +94,7 @@ public class NEWTMouseAdapter extends MouseAdapter implements InputEventCountAda
}
}
+ @Override
public synchronized void mouseReleased(final MouseEvent e) {
pressed = false;
queue.add(e);
@@ -94,6 +103,7 @@ public class NEWTMouseAdapter extends MouseAdapter implements InputEventCountAda
}
}
+ @Override
public synchronized void mouseClicked(final MouseEvent e) {
mouseClicked+=e.getClickCount();
if(e.isConsumed()) {
@@ -105,6 +115,7 @@ public class NEWTMouseAdapter extends MouseAdapter implements InputEventCountAda
}
}
+ @Override
public String toString() { return prefix+"[pressed "+pressed+", clicked "+mouseClicked+", consumed "+consumed+"]"; }
}