ptolemy.vergil.kernel
Class VergilUtilities

java.lang.Object
  extended byptolemy.vergil.kernel.VergilUtilities

public class VergilUtilities
extends java.lang.Object

Utilities used by Vergil.

Since:
Ptolemy II 4.0
Version:
$Id: VergilUtilities.java,v 1.4.2.2 2004/06/18 00:49:31 cxh Exp $
Author:
Christopher Hylands Brooks
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Method Summary
static boolean macOSLookAndFeel()
          Return true if we are running under MacOS look and feel or if the ptolemy.ptII.MacOS property is defined.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

macOSLookAndFeel

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.