Class VergilUtilities


  • public class VergilUtilities
    extends java.lang.Object
    Utilities used by Vergil.
    Since:
    Ptolemy II 4.0
    Version:
    $Id$
    Author:
    Christopher Hylands Brooks
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Method Detail

      • macOSLookAndFeel

        @Deprecated
        public static boolean macOSLookAndFeel()
        Return true if we are running under MacOS look and feel or if the ptolemy.ptII.MacOS property is defined. To define ptolemy.ptII.MacOS, invoke Vergil with java -Dptolemy.ptII.MacOS=true -classpath $PTII ptolemy.vergil.VergilApplication Or, under Cygwin:
          export JAVAFLAGS=-Dptolemy.ptII.MacOS=true
          $PTII/bin/vergil
          
        If the ptolemy.ptII.MacOS property is set to true, this method prints the message "ptolemy.ptII.MacOS = true property detected".
        Returns:
        True if the look and feel starts with "Mac OS" or the ptolemy.ptII.MacOS property is set to true.