ptolemy.vergil.kernel
Class VergilUtilities

java.lang.Object
  extended by ptolemy.vergil.kernel.VergilUtilities

public class VergilUtilities
extends java.lang.Object

Utilities used by Vergil.

Since:
Ptolemy II 4.0
Version:
$Id: VergilUtilities.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Christopher Hylands Brooks
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Constructor Summary
private VergilUtilities()
          Instances of this class cannot be created.
 
Method Summary
static boolean macOSLookAndFeel()
          Deprecated. Use PtGUIUtilities.macOSLookAndFeel().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VergilUtilities

private VergilUtilities()
Instances of this class cannot be created.

Method Detail

macOSLookAndFeel

public static boolean macOSLookAndFeel()
Deprecated. Use PtGUIUtilities.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.