JAL-3130 Some automatically fixed deprecated calls. Mostly constructors converted...
[jalview.git] / src / MCview / AppletPDBCanvas.java
index b15c3cc..b0b5d37 100644 (file)
@@ -37,12 +37,12 @@ import jalview.util.MessageManager;
 
 import java.awt.Color;
 import java.awt.Dimension;
-import java.awt.Event;
 import java.awt.Font;
 import java.awt.Graphics;
 import java.awt.Image;
 // JBPNote TODO: This class is quite noisy - needs proper log.info/log.debug
 import java.awt.Panel;
+import java.awt.event.InputEvent;
 import java.awt.event.KeyAdapter;
 import java.awt.event.KeyEvent;
 import java.awt.event.MouseEvent;
@@ -295,7 +295,7 @@ public class AppletPDBCanvas extends Panel
   {
     seqColoursReady = false;
     // Sort the bonds by z coord
-    visiblebonds = new Vector<Bond>();
+    visiblebonds = new Vector<>();
 
     for (int ii = 0; ii < pdb.getChains().size(); ii++)
     {
@@ -799,7 +799,7 @@ public class AppletPDBCanvas extends Panel
           {
             if (highlightRes == null)
             {
-              highlightRes = new Vector<String>();
+              highlightRes = new Vector<>();
             }
 
             final String atomString = Integer
@@ -893,7 +893,7 @@ public class AppletPDBCanvas extends Panel
     MCMatrix objmat = new MCMatrix(3, 3);
     objmat.setIdentity();
 
-    if ((evt.getModifiers() & Event.META_MASK) != 0)
+    if ((evt.getModifiersEx() & InputEvent.META_DOWN_MASK) != 0)
     {
       objmat.rotatez(((mx - omx)));
     }