public class ALDGrappaWorkbench extends JTabbedPane implements ActionListener, ALDWorkflowClassEventListener, ChangeListener
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected File |
lastLoadFilePath |
protected File |
lastSaveFilePath |
protected ALDGrappaFrame |
mainFrame |
protected JTextField |
renameTextField |
protected JFrame |
renameWin |
private boolean |
showProgressEvents
Flag to indicate if progress events are to be shown in window or not.
|
protected LinkedList<ALDGrappaWorkbenchTab> |
workflows
List of workflows currently managed.
|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
ALDGrappaWorkbench(ALDGrappaFrame frame)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
boolean |
addNewWorkflow()
Adds a new workflow (tab) to the workbench.
|
void |
addNodeToWorkflow(ALDOperatorLocation opNamePath) |
void |
clearTreeSelection() |
String |
getWorkflowName()
Returns name of currently active workflow.
|
void |
handleALDWorkflowClassEvent(ALDWorkflowClassEvent event)
Method which is called on event occurrence.
|
protected void |
handleLoadWorkflowEvent(ALDWorkflowClassEvent event) |
protected void |
handleWorkflowRenameEvent(String newName) |
protected ALDGrappaWorkbenchTab |
initNewTab(ALDGrappaWorkbenchGraph graph) |
protected boolean |
initNewWorkflow() |
protected boolean |
initNewWorkflow(ALDGrappaWorkbenchGraph graph) |
protected ALDGrappaWorkbenchTab |
initReloadedTab(com.mxgraph.view.mxGraph _graph,
ALDWorkflow _flow) |
protected void |
initReloadedWorkflow(com.mxgraph.view.mxGraph _graph,
ALDWorkflow _flow) |
protected void |
initRenameWin()
Setup of the window for renaming workflows.
|
void |
interruptWorkflowExecution() |
void |
loadWorkflow()
Loads a new workflow from file(s).
|
ALDOperatorLocation |
popRecentlySelectedOperatorPath() |
void |
quit()
Closes the main window after cleaning up.
|
void |
removeWorkflow()
Removes the currently active workflow.
|
void |
renameWorkflow()
Rename the currently active workflow.
|
protected void |
renameWorkflow(String newName) |
void |
runWorkflow()
Run the currently active workflow.
|
void |
saveWorkflow()
Saves the currently active workflow to file(s).
|
void |
setShowProgressEvents(boolean flag)
Method to turn on/off display of progress events in status field.
|
protected File |
showLoadFileSelectDialog()
Show file dialog to load a workflow.
|
boolean |
showProgressEvents()
Method to request whether to display progress events or not.
|
protected File |
showSaveFileSelectDialog()
Show file dialog to save a workflow.
|
void |
stateChanged(ChangeEvent e) |
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, fireStateChanged, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabComponentAt, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, indexOfTabComponent, insertTab, isEnabledAt, paramString, remove, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setSelectedComponent, setSelectedIndex, setTabComponentAt, setTabLayoutPolicy, setTabPlacement, setTitleAt, setToolTipTextAt, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected ALDGrappaFrame mainFrame
protected JFrame renameWin
protected JTextField renameTextField
protected File lastLoadFilePath
protected File lastSaveFilePath
private boolean showProgressEvents
protected LinkedList<ALDGrappaWorkbenchTab> workflows
public ALDGrappaWorkbench(ALDGrappaFrame frame)
public void setShowProgressEvents(boolean flag)
flag
- If true, progress event messages are displayed, otherwise not.public boolean showProgressEvents()
public boolean addNewWorkflow()
public String getWorkflowName()
public void renameWorkflow()
public void removeWorkflow()
public void loadWorkflow()
public void saveWorkflow()
public void runWorkflow()
public void interruptWorkflowExecution()
public void addNodeToWorkflow(ALDOperatorLocation opNamePath)
public ALDOperatorLocation popRecentlySelectedOperatorPath()
public void clearTreeSelection()
public void quit()
protected boolean initNewWorkflow()
protected boolean initNewWorkflow(ALDGrappaWorkbenchGraph graph)
protected ALDGrappaWorkbenchTab initNewTab(ALDGrappaWorkbenchGraph graph)
protected void initRenameWin()
protected void initReloadedWorkflow(com.mxgraph.view.mxGraph _graph, ALDWorkflow _flow)
protected void renameWorkflow(String newName)
protected ALDGrappaWorkbenchTab initReloadedTab(com.mxgraph.view.mxGraph _graph, ALDWorkflow _flow)
protected File showLoadFileSelectDialog()
protected File showSaveFileSelectDialog()
protected void handleWorkflowRenameEvent(String newName)
protected void handleLoadWorkflowEvent(ALDWorkflowClassEvent event)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void handleALDWorkflowClassEvent(ALDWorkflowClassEvent event)
ALDWorkflowClassEventListener
handleALDWorkflowClassEvent
in interface ALDWorkflowClassEventListener
event
- Event to be handled.public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.