pipe.gui
Class CreateGui

java.lang.Object
  |
  +--pipe.gui.CreateGui
All Implemented Interfaces:
Constants

public class CreateGui
extends java.lang.Object
implements Constants


Inner Class Summary
(package private)  class CreateGui.WindowHandler
           
 
Field Summary
private  Animator animator
           
 AnimationHistory animBox
           
private  java.io.File[] appFile
           
static GuiFrame appGui
           
private  DataLayer[] appModel
           
private  javax.swing.JTabbedPane appTab
           
private  GuiView[] appView
           
private  int freeSpace
           
 javax.swing.JSplitPane leftPane
          The Module will go in the top pane, the animation window in the bottom pane
 javax.swing.JScrollPane scroller
           
private static CreateGui theApp
           
 
Fields inherited from interface pipe.gui.Constants
ADDTOKEN, ARC, DEFAULT_BACKGROUND_COLOR, DEFAULT_DIRECTORY, DEFAULT_ELEMENT_COLOR, DEFAULT_ELEMENT_TYPE, DEFAULT_FILENAME, DELETE, DELTOKEN, DRAW, FIRE, MOVE, PLACE, RANDOM, START, STEPBACKWARD, STEPFORWARD, STOP, TRANSITION
 
Constructor Summary
CreateGui()
           
 
Method Summary
 void addAnimationHistory()
          Creates a new animationHistory text area, and returns a reference to it
 DataLayer currentPNMLData()
          returns the current dataLayer object - used to get a reference to pass to the modules
 AnimationHistory getAnimationHistory()
           
 Animator getAnimator()
           
 GuiFrame getApp()
           
 java.io.File getFile()
           
 int getFreeSpace()
           
 DataLayer getModel()
           
 DataLayer getModel(int place)
           
 javax.swing.JTabbedPane getTab()
           
 GuiView getView()
           
 GuiView getView(int place)
           
 void init()
           
 void insertModel(DataLayer newNet)
           
 void nullModel(int place)
           
 void nullView(int place)
           
 void removeAnimationHistory()
           
 void setFile(java.io.File modelfile, int fileNo)
           
 void setTabTitles(int place)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

appGui

public static GuiFrame appGui

theApp

private static CreateGui theApp

appModel

private DataLayer[] appModel

appView

private GuiView[] appView

appFile

private java.io.File[] appFile

animator

private Animator animator

appTab

private javax.swing.JTabbedPane appTab

freeSpace

private int freeSpace

leftPane

public javax.swing.JSplitPane leftPane
The Module will go in the top pane, the animation window in the bottom pane

animBox

public AnimationHistory animBox

scroller

public javax.swing.JScrollPane scroller
Constructor Detail

CreateGui

public CreateGui()
Method Detail

init

public void init()

insertModel

public void insertModel(DataLayer newNet)

getApp

public GuiFrame getApp()

getModel

public DataLayer getModel()

nullModel

public void nullModel(int place)

nullView

public void nullView(int place)

setTabTitles

public void setTabTitles(int place)

getView

public GuiView getView()

getModel

public DataLayer getModel(int place)

getView

public GuiView getView(int place)

getFile

public java.io.File getFile()

setFile

public void setFile(java.io.File modelfile,
                    int fileNo)

getFreeSpace

public int getFreeSpace()

getTab

public javax.swing.JTabbedPane getTab()

getAnimator

public Animator getAnimator()

currentPNMLData

public DataLayer currentPNMLData()
returns the current dataLayer object - used to get a reference to pass to the modules

addAnimationHistory

public void addAnimationHistory()
Creates a new animationHistory text area, and returns a reference to it

removeAnimationHistory

public void removeAnimationHistory()

getAnimationHistory

public AnimationHistory getAnimationHistory()