version2
Class SlateApp

java.lang.Object
  |
  +--version2.SlateApp

public class SlateApp
extends java.lang.Object

The main class for the application This application is a very trimmed-down version of a typical CAD tool It allows to draw simple drawings. This version of application allows user to extend the application through scripting support.

Author:
Ramnivas Laddad

Method Summary
static SlateApp getInstance()
          Expose the instance of object so that scripts can access it and its subsystems (menu, slate etc.).
 SlateAppMenuBar getMenuBar()
          Expose the menubar for this application
 Slate getSlate()
          Expose the slate object for scripts
static void main(java.lang.String[] args)
          The main function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SlateApp getInstance()
Expose the instance of object so that scripts can access it and its subsystems (menu, slate etc.).
Returns:
the instance object for this class

getSlate

public Slate getSlate()
Expose the slate object for scripts
Returns:
the slate object

getMenuBar

public SlateAppMenuBar getMenuBar()
Expose the menubar for this application
Returns:
the menubar object

main

public static void main(java.lang.String[] args)
The main function. It simply creates a new object of SlateApp. All the real work happens inside the contructor.