com.cycling74.max
Class MaxSystem

java.lang.Object
  extended by com.cycling74.max.MaxSystem

public class MaxSystem
extends Object

MXJ System utilities.


Field Summary
static String MXJ_VERSION
           
static int PATH_STYLE_COLON
           
static int PATH_STYLE_MAX
           
static int PATH_STYLE_NATIVE
           
static int PATH_STYLE_NATIVE_WIN
           
static int PATH_STYLE_SLASH
           
static int PATH_TYPE_ABSOLUTE
           
static int PATH_TYPE_BOOT
           
static int PATH_TYPE_C74
           
static int PATH_TYPE_IGNORE
           
static int PATH_TYPE_RELATIVE
           
 
Constructor Summary
MaxSystem()
           
 
Method Summary
static void defer(Executable fn)
           
static void deferFront(Executable fn)
           
static void deferLow(Executable fn)
          Will schedule the executable to a low priority thread
static void deferMedium(Executable fn)
          Will schedule the executable to a medium priority thread
static void error(String message)
          Shows a error message to the pd console
static String[] getClassPath()
          Returns the user classpath.
static short getMaxVersion()
           
static int[] getMaxVersionInts()
           
static String[] getSystemClassPath()
           
static void hideCursor()
          Not supported in PD
static boolean isStandAlone()
          Not supported in PD
static String locateFile(String filename)
          Tries to locate file in pure-data search path.
static void nextWindowIsModal()
          Not supported in PD
static void ouch(String message)
          Shows a message in the pd console and kill PD afterwards.
static void post(String message)
          Shows a message to the pd console
static boolean sendMessageToBoundObject(String name, String msg, Atom[] args)
          Sends a message to a bound object (IEM object or a receiver)
static void showCursor()
          Not supported in PD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MXJ_VERSION

public static String MXJ_VERSION

PATH_STYLE_COLON

public static final int PATH_STYLE_COLON
See Also:
Constant Field Values

PATH_STYLE_MAX

public static final int PATH_STYLE_MAX
See Also:
Constant Field Values

PATH_STYLE_NATIVE

public static final int PATH_STYLE_NATIVE
See Also:
Constant Field Values

PATH_STYLE_NATIVE_WIN

public static final int PATH_STYLE_NATIVE_WIN
See Also:
Constant Field Values

PATH_STYLE_SLASH

public static final int PATH_STYLE_SLASH
See Also:
Constant Field Values

PATH_TYPE_ABSOLUTE

public static final int PATH_TYPE_ABSOLUTE
See Also:
Constant Field Values

PATH_TYPE_BOOT

public static final int PATH_TYPE_BOOT
See Also:
Constant Field Values

PATH_TYPE_C74

public static final int PATH_TYPE_C74
See Also:
Constant Field Values

PATH_TYPE_IGNORE

public static final int PATH_TYPE_IGNORE
See Also:
Constant Field Values

PATH_TYPE_RELATIVE

public static final int PATH_TYPE_RELATIVE
See Also:
Constant Field Values
Constructor Detail

MaxSystem

public MaxSystem()
Method Detail

post

public static void post(String message)
Shows a message to the pd console

Parameters:
message - the string to show

error

public static void error(String message)
Shows a error message to the pd console

Parameters:
message - the string to show

ouch

public static void ouch(String message)
Shows a message in the pd console and kill PD afterwards.

Parameters:
message - the string to show

sendMessageToBoundObject

public static boolean sendMessageToBoundObject(String name,
                                               String msg,
                                               Atom[] args)
Sends a message to a bound object (IEM object or a receiver)

Parameters:
name - the destination of the message
msg - the symbol message ("bang", "float", "list")
args - the array of Atoms
Returns:
true if successfull

locateFile

public static String locateFile(String filename)
Tries to locate file in pure-data search path.

Parameters:
filename - of the file to search in path
Returns:
the full path of this file

deferLow

public static void deferLow(Executable fn)
Will schedule the executable to a low priority thread

Parameters:
fn - the executable

deferMedium

public static void deferMedium(Executable fn)
Will schedule the executable to a medium priority thread

Parameters:
fn - the executable

getClassPath

public static String[] getClassPath()
Returns the user classpath.

Returns:
Array of strings of each entries in the user classpath

defer

public static void defer(Executable fn)

deferFront

public static void deferFront(Executable fn)

getSystemClassPath

public static String[] getSystemClassPath()

isStandAlone

public static boolean isStandAlone()
Not supported in PD


getMaxVersion

public static short getMaxVersion()

getMaxVersionInts

public static int[] getMaxVersionInts()

hideCursor

public static void hideCursor()
Not supported in PD


showCursor

public static void showCursor()
Not supported in PD


nextWindowIsModal

public static void nextWindowIsModal()
Not supported in PD



This API is based on mxj for Max/MSP by Cycling74. Please see original MXJ implementation.