jaitools.demo.jiffle
Class DirectRuntimeDemo

java.lang.Object
  extended by jaitools.demo.jiffle.JiffleDemoBase
      extended by jaitools.demo.jiffle.DirectRuntimeDemo

public class DirectRuntimeDemo
extends JiffleDemoBase

Demonstrates how to retrieve and use a runtime object from a compiled Jiffle script.

Since:
1.1
Version:
$Id: DirectRuntimeDemo.java 1592 2011-03-29 11:01:25Z michael.bedward $
Author:
Michael Bedward

Field Summary
 
Fields inherited from class jaitools.demo.jiffle.JiffleDemoBase
HEIGHT, WIDTH
 
Constructor Summary
DirectRuntimeDemo()
           
 
Method Summary
 void compileAndRun(File scriptFile)
          Compiles a script read from a file and submits it for execution.
static void main(String[] args)
          Run the demonstration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectRuntimeDemo

public DirectRuntimeDemo()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Run the demonstration. The optional arg can be either the path to a user-supplied script file or one of "chessboard", "interference", "ripple" or "squircle".

Parameters:
args - (optional) the script to run
Throws:
Exception - on an error in the Jiffle compiler

compileAndRun

public void compileAndRun(File scriptFile)
                   throws Exception
Compiles a script read from a file and submits it for execution.

Parameters:
scriptFile - file containing the Jiffle script
Throws:
Exception - on an error in the Jiffle compiler


Copyright © 2011. All Rights Reserved.