ora.gui.helper
Class ElementController

java.lang.Object
  extended by ora.gui.helper.ElementController

public class ElementController
extends java.lang.Object

God class !! -> Needs to be more slim

Author:
Kristian Martin There is no Warranty

Constructor Summary
ElementController(ElementManagerInterface manager, MasterFrameCommon vf)
           
 
Method Summary
 void close()
           
 java.util.ArrayList getAllElements()
           
 java.util.HashMap getClassesList()
           
 java.awt.Color getColorOf(java.lang.String classname)
           
 Configuration getConfiguration()
           
 java.lang.String getConnectionStateText()
          Returns text about current state
 java.lang.String getCurrentElementManagerName()
           
 ElementManagerInterface getElementManager()
           
 GraphPane getGraphPane()
           
 MasterFrameCommon getMasterFrame()
           
 void getModel(DataClient dc, RemoteInterface_provider rip, PersistenceConfiguration conf)
          This method loads and returns current model
 void getModel(java.io.File file, PersistenceConfiguration conf)
          This method loads and returns current model
 UIController getUIController()
           
 void reloadElements()
          Reloads elements either locally or remotely
 void requestGC()
          Performs GC-request either locally or remotely depending on the memory connection state.
 void saveModelToFile(java.io.File file, PersistenceConfiguration conf)
           
 void setEnvironment(GraphPane gp, ThreadController tc)
           
 boolean startAction(java.lang.String verb)
           
 void stopAction(boolean startThreads)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementController

public ElementController(ElementManagerInterface manager,
                         MasterFrameCommon vf)
                  throws java.lang.IllegalAccessException
Throws:
java.lang.IllegalAccessException
Method Detail

getConfiguration

public Configuration getConfiguration()

setEnvironment

public void setEnvironment(GraphPane gp,
                           ThreadController tc)

saveModelToFile

public void saveModelToFile(java.io.File file,
                            PersistenceConfiguration conf)
                     throws java.lang.Throwable
Throws:
java.lang.Throwable

requestGC

public void requestGC()
Performs GC-request either locally or remotely depending on the memory connection state.


getModel

public void getModel(DataClient dc,
                     RemoteInterface_provider rip,
                     PersistenceConfiguration conf)
              throws java.lang.Exception
This method loads and returns current model

Parameters:
dc -
rip -
conf -
Throws:
java.lang.Exception

getModel

public void getModel(java.io.File file,
                     PersistenceConfiguration conf)
              throws java.lang.Exception
This method loads and returns current model

Parameters:
file -
conf -
Throws:
java.lang.Exception

getAllElements

public java.util.ArrayList getAllElements()

getClassesList

public java.util.HashMap getClassesList()

getConnectionStateText

public java.lang.String getConnectionStateText()
Returns text about current state

Returns:
statetext

reloadElements

public void reloadElements()
                    throws java.lang.Exception
Reloads elements either locally or remotely

Throws:
java.lang.Exception

getCurrentElementManagerName

public java.lang.String getCurrentElementManagerName()

getMasterFrame

public MasterFrameCommon getMasterFrame()

getColorOf

public java.awt.Color getColorOf(java.lang.String classname)

getGraphPane

public GraphPane getGraphPane()

getUIController

public UIController getUIController()

getElementManager

public ElementManagerInterface getElementManager()

close

public void close()

startAction

public boolean startAction(java.lang.String verb)

stopAction

public void stopAction(boolean startThreads)