version3
Class SlateApp

java.lang.Object
  |
  +--version3.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. This class exposes application to scripts using the "Facade" approach discussed in the accompanying article.

Author:
Ramnivas Laddad

Inner Class Summary
static interface SlateApp.Facade
          The facade interface to the application for scripting purpose.
 
Method Summary
static SlateApp.Facade getInstance()
          Expose the facade to the application so that scripts can access it.
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.Facade getInstance()
Expose the facade to the application so that scripts can access it.
Returns:
the facade object for this class

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.