-
Classes Class Description matlabcontrol.extensions.CallbackMatlabProxy This class was provided as a workaround whenMatlabProxycould not operate on the Event Dispatch Thread (EDT) used by AWT and Swing;MatlabProxyno longer has this limitation. Wraps around aMatlabProxymaking the method calls which interact with MATLAB operate with callbacks instead of return values. For each method inMatlabProxythat interacts with MATLAB, the same method exists but has one additional parameter that is eitherCallbackMatlabProxy.MatlabCallbackorCallbackMatlabProxy.MatlabDataCallback. Method invocations do not throwMatlabInvocationExceptions, but if the proxy throws aMatlabInvocationExceptionit will be provided to the callback.
All interactions with the proxy will be done in a single threaded manner. The underlying proxy methods will be completed in the order their corresponding methods in this class were called. Because method invocations on the proxy occur on a separate thread from the one calling the methods in this class, it can be used from within MATLAB on the Event Dispatch Thread (EDT).
This class is unconditionally thread-safe. There are no guarantees about the relative ordering of method completion when methods are invoked both on an instance of this class and on the proxy provided to it.matlabcontrol.extensions.MatlabProxyLogger Replaced byLoggingMatlabProxy. Wraps around aMatlabProxyto provide a log of interactions. The data is not altered. This logger is useful for determining the Java types and structure of data returned from MATLAB.
Entering a method, exiting a method, and throwing an exception are logged. Method parameters and return values are logged. The contents of a returned array will be recursively explored and its contents logged. As is convention, all of these interactions are logged atLevel.FINER. If the logging system has not been otherwise configured, then theConsoleHandlerwhich prints log messages to the console will not show these log messages as their level is too low. To configure theConsoleHandlerto show these log messages, callMatlabProxyLogger.showInConsoleHandler().
This class is unconditionally thread-safe.