org.jaitools.demo.jiffle
Class DirectRuntimeDemo

java.lang.Object
  extended by org.jaitools.demo.jiffle.JiffleDemoBase
      extended by org.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 1654 2011-06-16 10:46:55Z michael.bedward $
Author:
Michael Bedward

Field Summary
 
Fields inherited from class org.jaitools.demo.jiffle.JiffleDemoBase
HEIGHT, WIDTH
 
Constructor Summary
DirectRuntimeDemo()
           
 
Method Summary
 void compileAndRun(java.io.File scriptFile)
          Compiles a script read from a file and submits it for execution.
static void main(java.lang.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(java.lang.String[] args)
                 throws java.lang.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:
java.lang.Exception - on an error in the Jiffle compiler

compileAndRun

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

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


Copyright © 2011. All Rights Reserved.