changeset 7:075ae9eb2a40

changed splash screen to .gif corrected line style bug set Tablet/Mouse as first option on haptic device dialog
author Fiore Martin <fiore@eecs.qmul.ac.uk>
date Tue, 18 Dec 2012 18:49:20 +0000
parents 1c5af356bb99
children ea7885bd9bff
files java/src/splash.gif java/src/splash.jpeg java/src/uk/ac/qmul/eecs/ccmi/gui/LineStyle.java java/src/uk/ac/qmul/eecs/ccmi/main/DiagramEditorApp.java java/src/uk/ac/qmul/eecs/ccmi/speech/SpeechUtilities.java
diffstat 5 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
Binary file java/src/splash.gif has changed
Binary file java/src/splash.jpeg has changed
--- a/java/src/uk/ac/qmul/eecs/ccmi/gui/LineStyle.java	Mon Dec 17 18:39:40 2012 +0000
+++ b/java/src/uk/ac/qmul/eecs/ccmi/gui/LineStyle.java	Tue Dec 18 18:49:20 2012 +0000
@@ -33,13 +33,13 @@
 			BasicStroke.JOIN_ROUND, 
 			0.0f, 
 			new float[]{1.0f,3.0f}, 
-			0.0f),0xF0F0),
+			0.0f),0xAAAA),
 	Dashed(new BasicStroke(1.0f, 
 			BasicStroke.CAP_ROUND, 
 			BasicStroke.JOIN_ROUND, 
 			0.0f, 
 			new float[]{5.0f,5.0f}, 
-			0.0f),0xAAAA);
+			0.0f),0xF0F0);
 	
 	private LineStyle(BasicStroke stroke, int stipplePattern){
 		this.stroke = stroke;
--- a/java/src/uk/ac/qmul/eecs/ccmi/main/DiagramEditorApp.java	Mon Dec 17 18:39:40 2012 +0000
+++ b/java/src/uk/ac/qmul/eecs/ccmi/main/DiagramEditorApp.java	Tue Dec 18 18:49:20 2012 +0000
@@ -148,7 +148,7 @@
 						String selection = (String)SpeechOptionPane.showSelectionDialog(null, 
 								ResourceBundle.getBundle(DiagramEditorApp.class.getName()).getString("haptics_init.welcome"), 
 								hapticDevices, 
-								hapticDevices[0]);
+								hapticDevices[2]);
 						if(selection == null)
 							System.exit(0);
 						preferences.put("haptic_device", selection);
--- a/java/src/uk/ac/qmul/eecs/ccmi/speech/SpeechUtilities.java	Mon Dec 17 18:39:40 2012 +0000
+++ b/java/src/uk/ac/qmul/eecs/ccmi/speech/SpeechUtilities.java	Tue Dec 18 18:49:20 2012 +0000
@@ -104,6 +104,8 @@
 			public void actionPerformed(ActionEvent evt) {
 				FocusTraversalPolicy policy = KeyboardFocusManager.getCurrentKeyboardFocusManager().getDefaultFocusTraversalPolicy();
 				Component next = policy.getComponentAfter(container, KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner());
+				if(next == null)
+					return;
 				next.requestFocusInWindow();
 				NarratorFactory.getInstance().speak(SpeechUtilities.getComponentSpeech(next));
 				InteractionLog.log("TABBED PANE","change focus ",next.getAccessibleContext().getAccessibleName());
@@ -118,6 +120,8 @@
 			public void actionPerformed(ActionEvent evt) {
 				FocusTraversalPolicy policy = KeyboardFocusManager.getCurrentKeyboardFocusManager().getDefaultFocusTraversalPolicy();
 				Component previous = policy.getComponentBefore(container, KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner());
+				if(previous == null)
+					return;
 				previous.requestFocusInWindow();
 				NarratorFactory.getInstance().speak(SpeechUtilities.getComponentSpeech(previous));
 				InteractionLog.log("TABBED PANE","change focus ",previous.getAccessibleContext().getAccessibleName());