com.cycling74.max
Class MaxContext

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

public final class MaxContext
extends java.lang.Object

The context and company in which a Max object finds itself.

See Also:
MaxObject

Method Summary
 java.util.Set getAllObjects()
          Return a Set containing all current MaxObject instances.
 MaxObject getMaxObject(java.lang.String name)
          Find an instance with a given name.
 java.lang.String getMxjVersion()
          Return the mxj version information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMaxObject

public MaxObject getMaxObject(java.lang.String name)
Find an instance with a given name. An object can set its own name using MaxObject.setName.

Parameters:
name - the given name
Returns:
the MaxObject with the given name, or null if it doesn't exist
See Also:
MaxObject.setName(String)

getAllObjects

public java.util.Set getAllObjects()
Return a Set containing all current MaxObject instances. If there are none, return the empty Set. The returned Set is not modifiable.

Returns:
a Set containing all current MaxObject instances

getMxjVersion

public java.lang.String getMxjVersion()
Return the mxj version information.

Returns:
a String describing this version of mxj