ptolemy.gui
Class PtGUIUtilities

java.lang.Object
  extended by ptolemy.gui.PtGUIUtilities

public class PtGUIUtilities
extends java.lang.Object

GUI Utilities.

Since:
Ptolemy II 8.0
Version:
$Id: PtGUIUtilities.java 57044 2010-01-27 22:41:05Z cxh $
Author:
Christopher Brooks
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Field Summary
private static boolean _printedSecurityExceptionMessage
           
 
Constructor Summary
private PtGUIUtilities()
          Instances of this class cannot be created.
 
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
 

Field Detail

_printedSecurityExceptionMessage

private static boolean _printedSecurityExceptionMessage
Constructor Detail

PtGUIUtilities

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

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.