|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.e1.mxdublin.DublinProject
public class DublinProject
This class encapsulate a DublinProject. Each MaxObject is associated to a single project. In this project, there is
| Field Summary | |
|---|---|
File |
projectFile
The project file pointer. |
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener l)
Add an action listener to this project when a new file is read or written. |
void |
associateFrame(JFrame f)
Add this frame to the registry associated to this project. |
void |
closeConsole()
|
void |
dispose(Trail trail)
Remove and top trail from the project. |
void |
disposeAll()
Stops all trails and release MaxClock objects. |
void |
execFile(String file)
Execute code for file. |
void |
execSnippet(String name)
Execute python snippet named name |
void |
execString(String code)
Execute python code in code |
DublinMaxObject |
getMaxObject()
|
JythonBridge |
getPythonInterpreter()
Returns the running python interpreter instance. |
int |
getRunningTrails()
Returns the number of running trails in the project. |
String |
getSnippet(String name)
Returns the python code from the snippet name. |
SortedMap<String,String> |
getSnippets()
Returns current project snippets. |
int |
getStoppedTrails()
Returns the number of stopped trails in the project. |
Trail |
getTrail(String name)
Returns a trail from its name. |
ListModel |
getTrailListModel()
Returns the list of active trails. |
Collection<Trail> |
getTrails()
Return a copy of registered trails. |
void |
load(File openFile)
Open project from file. |
void |
newProject()
Creates a new project; this will: cancel all trails, remove all group properties and clear all snippets. |
void |
register(Trail t)
Tells dublin that a new Trail needs to be added to the registry. |
void |
removeActionListener(ActionListener l)
|
void |
renameTrail(Trail trail,
String value)
|
void |
save()
Save current project using projectFile. |
void |
save(File saveFile)
Save project to file. |
void |
showConsole()
|
void |
start()
Starts all registred trails. |
void |
stop()
Stops all trails even if they are not running. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public File projectFile
| Method Detail |
|---|
public void newProject()
public void save()
projectFile. It is the
callee job to check if the projectFile is initialized.
public void save(File saveFile)
projectFile
will be initialize with savedFile.
saveFile - the file to use to save the projectpublic void load(File openFile)
projectFile will be
initialize to openFile
openFile - the file to openpublic String getSnippet(String name)
name - the name of the snippet
public SortedMap<String,String> getSnippets()
public void addActionListener(ActionListener l)
l - the action listener to add to monitor projectpublic void removeActionListener(ActionListener l)
public void showConsole()
public void closeConsole()
public void associateFrame(JFrame f)
f - frame to add to registry.public JythonBridge getPythonInterpreter()
public void execFile(String file)
public void execString(String code)
code - the code to executepublic void execSnippet(String name)
name - the name of the snippet to executepublic void register(Trail t)
t - the trail to addpublic void disposeAll()
public void dispose(Trail trail)
public void renameTrail(Trail trail,
String value)
public void start()
public void stop()
public int getRunningTrails()
public int getStoppedTrails()
public ListModel getTrailListModel()
public Collection<Trail> getTrails()
public Trail getTrail(String name)
name - trail name
public DublinMaxObject getMaxObject()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||