Apple Macintosh graphics are slow, turn off anti-alias.
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Tue, 12 Feb 2013 00:34:23 +0000 (00:34 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Tue, 12 Feb 2013 00:34:23 +0000 (00:34 +0000)
forester/java/src/org/forester/archaeopteryx/AptxUtil.java
forester/java/src/org/forester/archaeopteryx/Configuration.java
forester/java/src/org/forester/archaeopteryx/Options.java

index 51f6477..60fea33 100644 (file)
@@ -853,17 +853,6 @@ public final class AptxUtil {
         return true;
     }
 
-    final static boolean isJava15() {
-        try {
-            final String s = ForesterUtil.JAVA_VERSION;
-            return s.startsWith( "1.5" );
-        }
-        catch ( final Exception e ) {
-            ForesterUtil.printWarningMessage( Constants.PRG_NAME, "minor error: " + e );
-            return false;
-        }
-    }
-
     final static boolean isMac() {
         try {
             final String s = ForesterUtil.OS_NAME.toLowerCase();
index 855ded5..b487a6d 100644 (file)
@@ -734,6 +734,10 @@ public final class Configuration {
     }
 
     boolean isAntialiasScreen() {
+        if ( AptxUtil.isMac() ) {
+            // Apple Macintosh graphics are slow, turn off anti-alias.
+            return false;
+        }
         return _antialias_screen;
     }
 
@@ -783,7 +787,7 @@ public final class Configuration {
     }
 
     final boolean isUseNativeUI() {
-        if ( ( _ui == UI.UNKNOWN ) && AptxUtil.isMac() && AptxUtil.isJava15() ) {
+        if ( ( _ui == UI.UNKNOWN ) && AptxUtil.isMac() ) {
             _ui = UI.NATIVE;
         }
         return _ui == UI.NATIVE;
index a0c70f3..e90ae20 100644 (file)
@@ -426,7 +426,7 @@ final public class Options {
         _show_branch_length_values = false;
         _internal_number_are_confidence_for_nh_parsing = false;
         _show_scale = false;
-        _antialias_screen = true;
+        _antialias_screen = false;
         _antialias_print = true;
         _graphics_export_visible_only = false;
         _editable = true;