|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.rubato.composer.JComposer
public class JComposer
The main window of Rubato Composer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.BaselineResizeBehavior |
Field Summary | |
---|---|
static int |
STATUS_ERROR
|
static int |
STATUS_INFO
|
static int |
STATUS_WARNING
|
static java.awt.Color[] |
statusColor
|
Fields inherited from class javax.swing.JFrame |
---|
EXIT_ON_CLOSE |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JComposer()
|
Method Summary | |
---|---|
void |
addJMacroRubetteView(NetworkModel networkModel,
JNetwork jnetwork)
Creates a new MacroRubette view based on the specified model. |
void |
addJRubette()
Adds the Rubette selected in the Rubette list to the visible JNetwork. |
void |
addJRubette(JNetwork jnetwork,
JRubette jrubette)
Adds the Rubette selected in the list to the visible JNetwork. |
void |
addJRubette(JNetwork jnetwork,
Rubette rubette)
Creates a new Rubette from rubette in jnetwork . |
void |
addProgressMessage(java.lang.String msg)
|
void |
addRubettePrototype(Rubette rubette)
Adds the specified AbstractRubette to the JRubetteList. |
void |
addRubettePrototypes(java.util.List<Rubette> rubettes)
Adds the list of AbstractRubettes to the JRubetteList. |
void |
clearStatus()
Clears the status bar. |
void |
finishRun()
Finish the current running. |
java.io.File |
getCurrentDirectory()
Returns the current directory. |
JRubetteList |
getJRubetteList()
Returns the list showing all Rubettes. |
java.awt.Dimension |
getPreferredSize()
|
RubetteManager |
getRubetteManager()
Returns the current Rubette manager. |
boolean |
isRunning()
Returns true iff there is a network currently running. |
boolean |
loseProject()
Shows dialog asking the user if he wants to save current project. |
void |
makeProgress(int value)
|
void |
newJNetwork()
Creates a new JNetwork. |
void |
open(java.io.File file)
Opens a project file replacing the current project. |
void |
quit()
Leaves Rubato Composer. |
void |
refreshNetworks()
Update all JNetworks. |
void |
removeJNetwork()
Removes the visible JNetwork. |
void |
removeJNetwork(JNetwork jnetwork)
Removes the specified JNetwork. |
void |
removeJNetworkForModel(NetworkModel networkModel)
Removes the JNetwork that has the specified NetworkModel. |
void |
removeProblemsFor(JRubette jrubette)
Removes all problems for the given JRubette from the problem list. |
void |
removeRubettePrototype(Rubette rubette)
Removes the specified AbstractRubette from the JRubetteList. |
void |
renameJNetwork(JNetwork jnetwork,
java.lang.String name)
Gives the specified JNetwork visible a new name. |
void |
resetProgressWindow(int max)
|
void |
setChanged(boolean b)
|
void |
setCurrentDirectory(java.io.File file)
Sets the current directory to file . |
void |
setRubetteManager(RubetteManager manager)
Sets the current Rubette manager. |
void |
setStatus(java.lang.String msg,
int type)
Sets the status bar to msg . |
void |
setStatusError(java.lang.String msg,
java.lang.Object... objects)
Displays an error message in the status bar. |
void |
setStatusInfo(java.lang.String msg,
java.lang.Object... objects)
Displays an information message in the status bar. |
void |
setStatusWarning(java.lang.String msg,
java.lang.Object... objects)
Displays a warning message in the status bar. |
void |
showDenotatorBuilder()
|
void |
showErrorDialog(java.lang.String msg,
java.lang.Object... objects)
Shows an error dialog with the specified message. |
void |
showFormBuilder()
|
void |
showModuleBuilder()
|
void |
showModuleMorphismBuilder()
|
void |
showObjectBrowser()
|
void |
showProgressWindow(boolean show)
|
void |
showSchemeDialog()
|
void |
showSchemeEditor()
|
void |
startPartialRun(java.util.ArrayList<RubetteModel> runList)
Runs the rubettes in runList in the
given order. |
void |
startRun()
Starts running of the currently visible JNetwork. |
void |
update(java.util.Observable o,
java.lang.Object arg)
|
Methods inherited from class javax.swing.JFrame |
---|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update |
Methods inherited from class java.awt.Frame |
---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
---|
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
public static final int STATUS_INFO
public static final int STATUS_WARNING
public static final int STATUS_ERROR
public static final java.awt.Color[] statusColor
Constructor Detail |
---|
public JComposer()
Method Detail |
---|
public void setRubetteManager(RubetteManager manager)
public RubetteManager getRubetteManager()
public void addRubettePrototypes(java.util.List<Rubette> rubettes)
public void addRubettePrototype(Rubette rubette)
public void removeRubettePrototype(Rubette rubette)
public JRubetteList getJRubetteList()
public void showErrorDialog(java.lang.String msg, java.lang.Object... objects)
public void setStatusError(java.lang.String msg, java.lang.Object... objects)
public void setStatusWarning(java.lang.String msg, java.lang.Object... objects)
public void setStatusInfo(java.lang.String msg, java.lang.Object... objects)
public void setStatus(java.lang.String msg, int type)
msg
.
msg
- the message to show in the status bartype
- the kind of message, STATUS_INFO, STATUS_ERROR or STATUS_WARNINGpublic void clearStatus()
public boolean loseProject()
public void open(java.io.File file)
public void quit()
public java.io.File getCurrentDirectory()
public void setCurrentDirectory(java.io.File file)
file
.
Additionally the user preference for current directory is set.
public void addJRubette()
public void addJRubette(JNetwork jnetwork, Rubette rubette)
rubette
in jnetwork
.
public void addJRubette(JNetwork jnetwork, JRubette jrubette)
public void newJNetwork()
public void addJMacroRubetteView(NetworkModel networkModel, JNetwork jnetwork)
networkModel
- the model to base the view onjnetwork
- the JNetwork that the MacroRubette resides inpublic void removeJNetwork()
public void removeJNetwork(JNetwork jnetwork)
public void removeJNetworkForModel(NetworkModel networkModel)
public void renameJNetwork(JNetwork jnetwork, java.lang.String name)
public void refreshNetworks()
public void finishRun()
public void startRun()
public void startPartialRun(java.util.ArrayList<RubetteModel> runList)
runList
in the
given order.
public boolean isRunning()
public void removeProblemsFor(JRubette jrubette)
public void showModuleBuilder()
public void showModuleMorphismBuilder()
public void showDenotatorBuilder()
public void showFormBuilder()
public void showObjectBrowser()
public void showSchemeDialog()
public void showSchemeEditor()
public void showProgressWindow(boolean show)
public void resetProgressWindow(int max)
public void makeProgress(int value)
public void addProgressMessage(java.lang.String msg)
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
public void setChanged(boolean b)
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class java.awt.Container
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |