version3
Interface SlateApp.Facade


public abstract static interface SlateApp.Facade

The facade interface to the application for scripting purpose. This facade allows a limited and easy access from user scripts With this facade user do not have to traverse the object containment hierarchy. Also because the subsystems are not exposed, scripts are limited in what they can do.


Method Summary
 void addInvokeScriptMenu(java.lang.String name, java.lang.String scriptFile)
          Add a menu to the application that invokes specified script
 void addInvokeScriptSeparatorMenu()
          Add a menu separator to the application
 void addShape(java.awt.Shape s)
          Add a given shape to the slate.
 void removeAllShapes()
          Remove all the shapes from the slate.
 void removeShape(java.awt.Shape s)
          Remove a given shape from the slate.
 

Method Detail

addShape

public void addShape(java.awt.Shape s)
Add a given shape to the slate.
Parameters:
s - shape to add

removeShape

public void removeShape(java.awt.Shape s)
Remove a given shape from the slate.
Parameters:
s - shape to remove

removeAllShapes

public void removeAllShapes()
Remove all the shapes from the slate.

addInvokeScriptMenu

public void addInvokeScriptMenu(java.lang.String name,
                                java.lang.String scriptFile)
Add a menu to the application that invokes specified script
Parameters:
name - the name of menu
scriptFile - the script file to be executed on invoking the menu

addInvokeScriptSeparatorMenu

public void addInvokeScriptSeparatorMenu()
Add a menu separator to the application