hades.utils
Class MatlabAdapter

java.lang.Object
  extended byhades.utils.MatlabAdapter

public class MatlabAdapter
extends java.lang.Object

MatlabAdapter provides a few utility methods that allow to integrate Hades into a Matlab environment. Using MatlabAdapter, Hades can also be used together with Matlab 5.3 (including the Student Edition) on Windows, whose alpha-quality Java interface requires several workarounds, e.g. to access classes without public constructor. Correspondingly, MatlabAdapter provides methods to access Hades (and jfig) singleton classes like SetupManager, DesignManager, and FontCache. For example, you would load application defaults like this:

     adapter = hades.utils.MatlabAdapter;
     setup   = adapter.getSetupManager;
     setup.loadUserProperties( 'hades.ini' );
   


Field Summary
(package private)  FigAttribs attribs
           
(package private)  ColorCache colorCache
           
static boolean debug
           
(package private)  DesignManager designManager
           
(package private)  FontCache fontCache
           
(package private)  SetupManager setupManager
           
 
Constructor Summary
MatlabAdapter()
           
 
Method Summary
 java.lang.Thread currentThread()
           
 ColorCache getColorCache()
           
 DesignManager getDesignManager()
           
 boolean getFalse()
           
 FontCache getFontCache()
           
 java.lang.String[] getMatlabPath()
           
 java.lang.String getProperty(java.lang.String key)
           
 SetupManager getSetupManager()
           
 boolean getTrue()
           
 void loadProperties(java.lang.String filename)
          load and merge local SetupManager properties from a file on the Matlab path (if set).
static void main(java.lang.String[] argv)
           
 void msg(java.lang.String s)
           
 void setHadesUseAWT()
           
 void setMatlabPath(java.lang.String s)
           
 void setProperty(java.lang.String key, java.lang.String value)
           
 void sleep(int millis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

setupManager

SetupManager setupManager

designManager

DesignManager designManager

attribs

FigAttribs attribs

fontCache

FontCache fontCache

colorCache

ColorCache colorCache

debug

public static boolean debug
Constructor Detail

MatlabAdapter

public MatlabAdapter()
Method Detail

setHadesUseAWT

public void setHadesUseAWT()

getSetupManager

public SetupManager getSetupManager()

getDesignManager

public DesignManager getDesignManager()

getColorCache

public ColorCache getColorCache()

getFontCache

public FontCache getFontCache()

setMatlabPath

public void setMatlabPath(java.lang.String s)

getMatlabPath

public java.lang.String[] getMatlabPath()

loadProperties

public void loadProperties(java.lang.String filename)
load and merge local SetupManager properties from a file on the Matlab path (if set).


getProperty

public java.lang.String getProperty(java.lang.String key)

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)

getFalse

public boolean getFalse()

getTrue

public boolean getTrue()

currentThread

public java.lang.Thread currentThread()

sleep

public void sleep(int millis)

msg

public void msg(java.lang.String s)

main

public static void main(java.lang.String[] argv)