org.uacalc.nbui
Class MainController

java.lang.Object
  extended by org.uacalc.nbui.MainController

public class MainController
extends java.lang.Object


Field Summary
static java.lang.String ALGEBRA_CHANGED
           
 
Constructor Summary
MainController(UACalc uacalcUI)
           
 
Method Summary
 org.uacalc.ui.util.GUIAlgebra addAlgebra(org.uacalc.ui.util.GUIAlgebra gAlg, boolean makeCurrent)
          Make alg into a GUIAlgebra, add it to the list and to the table with the list and scroll to the bottom.
 org.uacalc.ui.util.GUIAlgebra addAlgebra(SmallAlgebra alg)
           
 org.uacalc.ui.util.GUIAlgebra addAlgebra(SmallAlgebra alg, boolean makeCurrent)
           
 org.uacalc.ui.util.GUIAlgebra addAlgebra(SmallAlgebra alg, java.io.File file, boolean makeCurrent)
          Make alg into a GUIAlgebra, add it to the list and to the table with the list and scroll to the bottom.
 void beep()
           
 boolean checkSave()
           
 void clearUserMessage()
          Clear the user message.
 AlgebraEditorController getAlgebraEditorController()
           
 org.uacalc.ui.util.GUIAlgebraList getAlgebraList()
           
 ComputationsController getComputationsController()
           
 ConController getConController()
           
 org.uacalc.ui.util.GUIAlgebra getCurrentAlgebra()
           
 java.io.File getCurrentFile()
           
 DrawingController getDrawingController()
           
 LatDrawPanel getLatDrawPanel()
           
 java.util.prefs.Preferences getPrefs()
           
 java.beans.PropertyChangeSupport getPropertyChangeSupport()
           
 java.util.Random getRandom()
           
 SubController getSubController()
           
 boolean isDirty()
           
 void loadBuiltIn()
           
 void open()
           
 void open(java.io.File file)
           
 void quit()
           
 void removeCurrentAlgebra()
           
 void resetToolBar()
           
 boolean save()
           
 boolean saveAs(java.lang.String ext)
           
static void scrollToBottom(javax.swing.JTable table)
           
 void setAlgListComboBox()
           
 void setCurrentAlgebra(org.uacalc.ui.util.GUIAlgebra alg)
           
 void setCurrentAlgebra(SmallAlgebra alg)
           
 void setCurrentFile(java.io.File f)
           
 void setDirty()
           
 void setDirty(boolean v)
           
 void setNew()
           
 void setRandomSeed(long seed)
           
 void setTimedMessage(java.lang.String msg)
          Give the user a message and erase it after a few seconds.
 void setTitle()
           
 void setUserMessage(java.lang.String msg)
          Give the user a message, set in the dimension panal info area.
 void setUserMessage(java.lang.String msg, boolean popup)
          Give the user a message, set in the dimension panal info area and possibly a popup.
 void setUserWarning(java.lang.String msg)
          Give the user a warning, set in the dimension panal info area.
 void setUserWarning(java.lang.String msg, boolean popup)
          Give the user a warning, set in the dimension panal info area and pop up a info dialog.
 void switchAlgebra(org.uacalc.ui.util.GUIAlgebra gAlg)
           
static void tableToCSV(java.lang.String desc, TermTableModel model, java.io.PrintStream out)
           
 boolean writeCSVTable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALGEBRA_CHANGED

public static final java.lang.String ALGEBRA_CHANGED
See Also:
Constant Field Values
Constructor Detail

MainController

public MainController(UACalc uacalcUI)
Method Detail

getCurrentFile

public java.io.File getCurrentFile()

setCurrentFile

public void setCurrentFile(java.io.File f)

getPropertyChangeSupport

public java.beans.PropertyChangeSupport getPropertyChangeSupport()

quit

public void quit()

checkSave

public boolean checkSave()

addAlgebra

public org.uacalc.ui.util.GUIAlgebra addAlgebra(SmallAlgebra alg,
                                                boolean makeCurrent)

addAlgebra

public org.uacalc.ui.util.GUIAlgebra addAlgebra(SmallAlgebra alg)

addAlgebra

public org.uacalc.ui.util.GUIAlgebra addAlgebra(SmallAlgebra alg,
                                                java.io.File file,
                                                boolean makeCurrent)
Make alg into a GUIAlgebra, add it to the list and to the table with the list and scroll to the bottom. Right now the list of algebras is maintained the algebraTableModel. We may want to change that.


addAlgebra

public org.uacalc.ui.util.GUIAlgebra addAlgebra(org.uacalc.ui.util.GUIAlgebra gAlg,
                                                boolean makeCurrent)
Make alg into a GUIAlgebra, add it to the list and to the table with the list and scroll to the bottom. Right now the list of algebras is maintained the algebraTableModel. We may want to change that.


getLatDrawPanel

public LatDrawPanel getLatDrawPanel()

getAlgebraEditorController

public AlgebraEditorController getAlgebraEditorController()

getComputationsController

public ComputationsController getComputationsController()

getConController

public ConController getConController()

getSubController

public SubController getSubController()

getDrawingController

public DrawingController getDrawingController()

resetToolBar

public void resetToolBar()

save

public boolean save()

saveAs

public boolean saveAs(java.lang.String ext)

writeCSVTable

public boolean writeCSVTable()

open

public void open()

open

public void open(java.io.File file)

loadBuiltIn

public void loadBuiltIn()

switchAlgebra

public void switchAlgebra(org.uacalc.ui.util.GUIAlgebra gAlg)

getCurrentAlgebra

public org.uacalc.ui.util.GUIAlgebra getCurrentAlgebra()

removeCurrentAlgebra

public void removeCurrentAlgebra()

setCurrentAlgebra

public void setCurrentAlgebra(SmallAlgebra alg)

setCurrentAlgebra

public void setCurrentAlgebra(org.uacalc.ui.util.GUIAlgebra alg)

getRandom

public java.util.Random getRandom()

setRandomSeed

public void setRandomSeed(long seed)

isDirty

public boolean isDirty()

setDirty

public void setDirty()

setDirty

public void setDirty(boolean v)

beep

public void beep()

setTitle

public void setTitle()

setNew

public void setNew()

getAlgebraList

public org.uacalc.ui.util.GUIAlgebraList getAlgebraList()

setAlgListComboBox

public void setAlgListComboBox()

setUserMessage

public void setUserMessage(java.lang.String msg)
Give the user a message, set in the dimension panal info area.


setUserMessage

public void setUserMessage(java.lang.String msg,
                           boolean popup)
Give the user a message, set in the dimension panal info area and possibly a popup.


clearUserMessage

public void clearUserMessage()
Clear the user message.


setUserWarning

public void setUserWarning(java.lang.String msg)
Give the user a warning, set in the dimension panal info area.


setUserWarning

public void setUserWarning(java.lang.String msg,
                           boolean popup)
Give the user a warning, set in the dimension panal info area and pop up a info dialog.


setTimedMessage

public void setTimedMessage(java.lang.String msg)
Give the user a message and erase it after a few seconds.


tableToCSV

public static void tableToCSV(java.lang.String desc,
                              TermTableModel model,
                              java.io.PrintStream out)

getPrefs

public java.util.prefs.Preferences getPrefs()

scrollToBottom

public static void scrollToBottom(javax.swing.JTable table)


Copyright 2003 Ralph Freese. All Rights Reserved.