Class Mediator
java.lang.Object
jsimgraph.controller.Mediator
- All Implemented Interfaces:
GraphCursorController, GuiInterface
This class maintains a reference to all the main components of the Gui,
in this way it is possible to divide the responsibility of the actions &
every object know only about of himself & the mediator.
Other actions are made through the mediator without knowing who will actually
do it.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabout()Shows about windowvoidvoidaddCellsToBlockingRegion(Object regionKey, Object[] cells) Adds given JmtCells to a freshly created blocking region.voidAdds a new blocking region that contains selected cells, if this does not overlap with existing onevoidvoidautoscroll(Point p) Scroll the graph for an event atp.voidavoidOverlappingCell(Object[] cells2) voidThis function hides the helper bar for drawing Bezier EdgesvoidThis function shows the helper bar for drawing Bezier EdgesvoidThis function interrupt the drawing of an Edge For example if the user realised that he made a mistakevoidchangeSimActionsState(boolean start, boolean pause, boolean stop) Changes simulation action status.booleancheckForSave(String msg) Checks if there's an old graph to save.voidvoidconnect(Point2D start, Point2D current, org.jgraph.graph.PortView inPort, org.jgraph.graph.PortView outPort) Creates a connection between given source and target JmtCellsCreates a connection between given source and target JmtCellsvoidconnectBezier(Point2D start, Point2D current, JMTPath path, org.jgraph.graph.PortView inPort, org.jgraph.graph.PortView outPort) booleancontainsCell(Object cell) Tells if a given cell exists in the graph.voidCopies all the selected stations, connections and blocking regions.Creates a menu to be displayed in main window.Creates a toolbar to be displayed in main window.voidCuts all the selected stations, connections and blocking regions.voidDeletes the given elements from graph.voiddeleteJmtEdge(JmtEdge edge) This function deletes a jmtEdge without disconnecting the stations this is used before replacing that edge with another.voidDeletes all the selected stations, connections and blocking regions.voiddisplayGraphErrMsg(String message) Displays an error message in the panel that is responsible to make the user understand why a certain operation is not valid.voidvoideditConnectionLabels(Object sourceKey, Object targetKey, Point2D source, Point2D target, JmtEdge edge) Edit the labels the given connection A connection needs a labels if it contains one or several broken arcs.voidvoidLaunches theMeasureeditor.voidCalled when EditPAParams action is triggeredvoidCalled when EditSimParams action is triggeredvoidCalled when UseTemplate action is triggeredvoidLaunches theUserClasseditor.voidenableAddBlockingRegion(boolean state) voidenableCopyAction(boolean state) voidenableCutAction(boolean state) voidenableDeleteAction(boolean state) voidenableEditUserClasses(boolean state) Enables or not theUserClasseditor function.voidenablePasteAction(boolean state) voidenableRedoAction(boolean state) voidenableRotateAction(boolean state) voidenableRotateLeftAction(boolean state) voidenableRotateRightAction(boolean state) voidenableSetRight(boolean state) voidenableSnapToGridAction(boolean state) voidenableUndoAction(boolean state) voidexit()Sends an exit signal to main windowvoidgetAbout()doublegetBound()getCellCoordinates(JmtCell cell) Retrieves the location of the given cell.getCellDimension(JmtCell cell) Gets the Dimension of a specified cellGets cell factory to create new graph cellsgetConnectionEdge(Object sourceKey, Object targetKey) Gets the edge for a connection, given the source and target keys.intReturns the number of clicks for editing of the graph to start.getExit()org.jgraph.JGraphgetGraph()Gets the background color of graph.Gets the cursor set in the graph.Returns this graph's graphics context, which lets you draw on a component.Returns the current marquee color of the graph.org.jgraph.graph.PortViewgetInPortViewAt(int x, int y) Gets the first portView of the input port of the cell at position.booleangetModel()org.jgraph.graph.CellViewgetNextViewAt(org.jgraph.graph.CellView current, double x, double y) org.jgraph.graph.PortViewgetOutPortViewAt(int x, int y) Gets the first portView of the output port of the cell at position.Returns current PAProgressWindowReturns the parent of child in the model.Returns current ResultsWindowgetStationCell(Object key) Gets the cell for a station, given the search key.intorg.jgraph.graph.GraphUndoManagerorg.jgraph.graph.CellViewgetViewOfCell(Object cell, boolean create) Returns the views for the specified array of cells.voidRepaints the graph component.voidvoidShows a panel with caught exceptionvoidThis method is used to reflect drag in and out a blocking region on data structure and to move dragged cells to background to use transparency of blocking region over themvoidvoidInsertCell(Point2D pt, JmtCell newCell) Inserts a new cell (vertex) in the desired point into the graph.booleanUsed to discover if the instance can display simulation animationbooleanisCellEditable(Object cell) Returns true iff specified cell is editable.booleanisCellSelected(Object cell) Returns true if the cell is currently selected.booleanisCellVisible(Object cell) Tells if a given cell is visible in the graph.booleanReturning true signifies the marquee handler has precedence over other handlers, and is receiving subsequent mouse events.booleanReturns true if the graph is being edited.booleanDetermines whether this component is enabled.booleanbooleanTells if something is selected into graph windowbooleanReturning true signifies a mouse event on the cell should toggle the selection of only the cell under mouse.voidThis function load the image of a station applying the right modifications (rotation or mirror)voidnewModel()voidOpens a model from a data file.booleanoverlapCells(Point2D p, Dimension d) Checks whether the given region overlaps an existing cell with its bounds.booleanoverlapCells(Point2D p, JmtCell cell) Checks whether the given cell overlaps an existing cell with its bounds.voidPastes all the cut/copied stations, connections and blocking regions.voidPauses current simulation Author: Bertoli Marco Modified by Francesco D'AquinovoidUses information retrieved from data structure to recreate graph structure.voidputCellInGoodPlace(JmtCell cell, int x, int y, boolean flag) voidputSelectedCellsInGoodPlace(Object[] cells, Integer[] X, Integer[] Y) This function will put selected cells in place avoiding overlapping with other cells in graph window
Author: Bertoli Marco Heavily modified by Giuseppe De Cicco & Fabio Granaravoidredo()voidUsed to reset mouseListener to default (to avoid File_Save / File_New operations while in inserting mode)voidrotateComponent(Object[] cells) Method that rotate components author Giuseppe De Cicco & Fabio GranaravoidrotateLeft(Object[] cells) Set the angle of rotation in the attributes of the rotated cells Load the rotated imagevoidrotateRight(Object[] cells) Set the angle of rotation in the attributes of the rotated cells Load the rotated imagevoidSaves the current model into current file if exists, otherwise calls saveModelAs() Author: Bertoli MarcovoidSaves the current model into a user specified file.voidSet the state of mouse listener to select & passes the event to the listener as if press event is generated.voidselectCellForEvent(Object cell, MouseEvent e) Messaged to update the selection based on a MouseEvent over a particular cell.voidsetAnimationHolder(Thread thread) voidvoidvoidvoidsetGraphCursor(Cursor cursor) Sets graph cursorvoidsetHandle(org.jgraph.graph.CellHandle handle) voidsetInsertState(String className) voidsetIsReleased(boolean state) voidsetMouseListener(GraphMouseListener mouseListener) voidsetOldCursor(Cursor oldCursor) voidsetResultsWindow(JFrame rsw) Sets resultWindow to be shown.voidvoidsetUndoManager(org.jgraph.graph.GraphUndoManager um) voidvoidshowBlockingRegionParameterPanel(Object regionKey) voidShows a DefaultEditor to edit Defaults parametersvoidshowErrorMessage(String message) Shows a panel with an error messagevoidshowOPanel(Point p) Shows the panel that opens when the right button is clicked.voidshowRelatedPanel(int problemType, int problemSubType, Object relatedStation, Object relatedClass) Shows the panel to solve a problemvoidShows results window and forces show results button to be selectedvoidshowResultsWindow(boolean selected) Called when showResults action is triggeredvoidshowStationParameterPanel(Object stationKey, int section, Object classKey) voidUsed only for the AnimationPanel to update the tableReturns the given point applied to the grid.booleansnapCellByPort(JmtCell cell) If the grid is enabled, moves a JmtCell so that it one of its ports is snapped to the grid.voidvoidstartEditingAtCell(Object cell) Selects the specified cell and initiates editing.voidGenerates the xml to send to simulation engine.voidStops current simulation, aborting all measures Author: Bertoli MarcovoidTakes a screenshot of current jgraph.voidvoidtoggleDebug(boolean enable) voidToggle enableGrid in the JGraph object if the grid was previously enabled, the grid is now disabled.voidtoJMVA()Switch current model to JMVA exact solverUpscale the given point in place, i.e.voidtryAdjustGraph(boolean needConfirm) voidundo()voidupdateLabelAfterMovingCell(Object[] cells) This function updates the labels of all Bezier edges connected to a cell after the cell was moved The labels identify the broken arcsvoidUpdates station positions into data structure to reflect the one shown on jgraph window.voidzoomIn()voidzoomOut()
-
Field Details
-
cells
-
cellsAttr
-
-
Constructor Details
-
Mediator
-
-
Method Details
-
createToolbar
Creates a toolbar to be displayed in main window.- Returns:
- created toolbar.
-
createMenu
Creates a menu to be displayed in main window.- Returns:
- created menu.
-
getComponentBar
-
setMouseListener
-
getMouseListener
-
getEditUserClasses
-
getExit
-
getClassDefinition
-
getStationDefinition
-
getSimulationDefinition
-
getBlockingRegionDefinition
-
enableAddBlockingRegion
public void enableAddBlockingRegion(boolean state) -
enableRotateAction
public void enableRotateAction(boolean state) -
enableRotateLeftAction
public void enableRotateLeftAction(boolean state) -
enableRotateRightAction
public void enableRotateRightAction(boolean state) -
enableSetRight
public void enableSetRight(boolean state) -
getAddBlockingRegion
-
getRotate
-
getRotateLeft
-
getRotateRight
-
getSetRight
-
getPauseSimulation
-
getStopSimulation
-
getEditDefaults
-
getEditSimParams
-
getEditPAParams
-
getShowResults
-
getAbout
-
getBezierEdgeAddControlPoint
-
getBezierEdgeAddTangents
-
getBezierEdgeBreakEdge
-
getBezierEdgeRemoveControlPoint
-
getBezierEdgeSelectControlPoint
-
getBezierEdgeUnlockTangents
-
getCancelEdgeDrawing
-
undo
public void undo() -
redo
public void redo() -
enableUndoAction
public void enableUndoAction(boolean state) -
enableRedoAction
public void enableRedoAction(boolean state) -
getUndoAction
-
getRedoAction
-
getUndoManager
public org.jgraph.graph.GraphUndoManager getUndoManager() -
setUndoManager
public void setUndoManager(org.jgraph.graph.GraphUndoManager um) -
setConnectState
public void setConnectState() -
setBezierConnectState
public void setBezierConnectState() -
setInsertState
-
setSelectState
public void setSelectState() -
activateSelect
public void activateSelect() -
enableCutAction
public void enableCutAction(boolean state) -
enableCopyAction
public void enableCopyAction(boolean state) -
enablePasteAction
public void enablePasteAction(boolean state) -
enableDeleteAction
public void enableDeleteAction(boolean state) -
enableSnapToGridAction
public void enableSnapToGridAction(boolean state) -
getTakeScreenShot
-
setHandle
public void setHandle(org.jgraph.graph.CellHandle handle) -
getOpenHelp
-
getNewModel
-
getOpenModel
-
getSaveModel
-
getSaveModelAs
-
getCloseModel
-
getSetConnect
-
getSetBezierConnect
-
getSnapToGrid
-
getCutAction
-
getCopyAction
-
getPasteAction
-
getDeleteAction
-
getSetOptions
-
getSetSelect
-
getSimulate
-
getSolveAnalitic
-
getSolveApp
-
getCellFactory
Gets cell factory to create new graph cells- Returns:
- cell factory
-
newModel
public void newModel() -
openModel
Opens a model from a data file.
Author: Bertoli Marco -
closeModel
public void closeModel() -
InsertCell
-
selectAt
Set the state of mouse listener to select & passes the event to the listener as if press event is generated.- Parameters:
e-
-
isGraphEnabled
public boolean isGraphEnabled()Determines whether this component is enabled. An enabled component can respond to user input and generate events. Components are enabled initially by default. A component may be enabled or disabled by calling itssetEnabledmethod.- Returns:
trueif the component is enabled,falseotherwise- Since:
- JDK1.0
-
graphRequestFocus
public void graphRequestFocus() -
getTolerance
public int getTolerance() -
fromScreen
-
fromScreen
-
getGraphGraphics
Returns this graph's graphics context, which lets you draw on a component. Use this method get aGraphicsobject and then invoke operations on that object to draw on the component.- Returns:
- this components graphics context
-
getNextViewAt
public org.jgraph.graph.CellView getNextViewAt(org.jgraph.graph.CellView current, double x, double y) -
isForceMarqueeEvent
Returning true signifies the marquee handler has precedence over other handlers, and is receiving subsequent mouse events. -
getEditClickCount
public int getEditClickCount()Returns the number of clicks for editing of the graph to start. -
isToggleSelectionEvent
Returning true signifies a mouse event on the cell should toggle the selection of only the cell under mouse. -
isCellSelected
Returns true if the cell is currently selected.- Parameters:
cell- an object identifying a cell- Returns:
- true if the cell is selected
-
selectCellForEvent
Messaged to update the selection based on a MouseEvent over a particular cell. If the event is a toggle selection event, the cell is either selected, or deselected. Otherwise the cell is selected. -
autoscroll
Scroll the graph for an event atp. -
getGraphCursor
Gets the cursor set in the graph. If the graph does not have a cursor set, the cursor of its parent is returned. If no cursor is set in the entire hierarchy,Cursor.DEFAULT_CURSORis returned. -
setGraphCursor
Sets graph cursor- Specified by:
setGraphCursorin interfaceGraphCursorController- Parameters:
cursor- to be set
-
isGraphEditing
public boolean isGraphEditing()Returns true if the graph is being edited. The item that is being edited can be returned by getEditingCell(). -
snap
-
toScreen
-
getGraphBackground
Gets the background color of graph.- Returns:
- this component's background color; if this component does not have a background color, the background color of its parent is returned
-
getGraphMarqueeColor
Returns the current marquee color of the graph. -
connect
-
connectBezier
-
connect
-
connect
Creates a connection between given source and target JmtCells- Parameters:
source- source celltarget- target cellforced- true if connection must be shown also if could not be created into data structure.- Returns:
- created component or null if connection between source and target cannot be created Author: Bertoli Marco Modified by Emma Bortone to add the BEZIER ROUTING
-
getStationCell
-
getConnectionEdge
-
graphRepaint
public void graphRepaint()Repaints the graph component. -
getParent
-
getInPortViewAt
public org.jgraph.graph.PortView getInPortViewAt(int x, int y) Gets the first portView of the input port of the cell at position.- Parameters:
x-y-- Returns:
- portView of the input port
-
getOutPortViewAt
public org.jgraph.graph.PortView getOutPortViewAt(int x, int y) Gets the first portView of the output port of the cell at position.- Parameters:
x-y-- Returns:
- portView of the output port
-
containsCell
Tells if a given cell exists in the graph.- Parameters:
cell-- Returns:
- true iff the cell exists
-
isCellVisible
Tells if a given cell is visible in the graph.- Parameters:
cell-- Returns:
- true iff the cell is visible
-
getViewOfCell
Returns the views for the specified array of cells. Returned array may contain null pointers if the respective cell is not mapped in this view andcreateisfalse. -
startEditingAtCell
Selects the specified cell and initiates editing. The edit-attempt fails if theCellEditordoes not allow editing for the specified item. -
startEditingAtAbstractCell
-
showStationParameterPanel
-
showBlockingRegionParameterPanel
-
showBezierEditingPanel
public void showBezierEditingPanel() -
hideBezierEditingPanel
public void hideBezierEditingPanel() -
cutSelection
public void cutSelection()Cuts all the selected stations, connections and blocking regions. -
copySelection
public void copySelection()Copies all the selected stations, connections and blocking regions. -
pasteSelection
public void pasteSelection()Pastes all the cut/copied stations, connections and blocking regions. -
deleteSelection
public void deleteSelection()Deletes all the selected stations, connections and blocking regions. -
delete
Deletes the given elements from graph. -
deleteJmtEdge
This function deletes a jmtEdge without disconnecting the stations this is used before replacing that edge with another. -
displayGraphErrMsg
Displays an error message in the panel that is responsible to make the user understand why a certain operation is not valid.- Parameters:
message- error to be displayed.
-
showOPanel
Shows the panel that opens when the right button is clicked.- Parameters:
p- point where the right button is clicked on the graph
-
saveModel
public void saveModel()Saves the current model into current file if exists, otherwise calls saveModelAs() Author: Bertoli Marco -
saveModelAs
public void saveModelAs()Saves the current model into a user specified file. Author: Bertoli Marco -
updateStationPositions
public void updateStationPositions()Updates station positions into data structure to reflect the one shown on jgraph window. This method is called before saving model. Author: Bertoli Marco -
populateGraph
public void populateGraph()Uses information retrieved from data structure to recreate graph structure. This method has to be called after loading a model.
Author: Bertoli Marco -
getGraph
public org.jgraph.JGraph getGraph()- Returns:
- the system
JGraph.
-
editUserClasses
public void editUserClasses()Launches theUserClasseditor. -
enableEditUserClasses
public void enableEditUserClasses(boolean state) Enables or not theUserClasseditor function. -
putSelectedCellsInGoodPlace
-
putCellInGoodPlace
-
getCellCoordinates
-
overlapCells
-
overlapCells
Checks whether the given region overlaps an existing cell with its bounds. This method is used to control overlapping before inserting new cell into the Jgraph.- Parameters:
p- The point where the given cell will be inserted.d- The dimensions of cell to be inserted- Returns:
true- whether there's an overlapping situation. Author: Bertoli Marco Heavily Modified by Giuseppe De Cicco & Fabio Granara
-
startSimulation
public void startSimulation()Generates the xml to send to simulation engine. Author: Bertoli Marco Modified by Francesco D'Aquino Modified by Michael Fercu (Logger,2008,0.7.4) -
stopSimulation
public void stopSimulation()Stops current simulation, aborting all measures Author: Bertoli Marco -
pauseSimulation
public void pauseSimulation()Pauses current simulation Author: Bertoli Marco Modified by Francesco D'Aquino -
changeSimActionsState
public void changeSimActionsState(boolean start, boolean pause, boolean stop) Changes simulation action status. This method is called by DispatcherThread.- Specified by:
changeSimActionsStatein interfaceGuiInterface- Parameters:
start- state for start actionpause- state for pause actionstop- state for stop action
-
editMeasures
public void editMeasures()Launches theMeasureeditor. Author: Bertoli Marco -
getEditMeasures
- Returns:
- A reference to the action
EditMeasures.
-
checkForSave
Checks if there's an old graph to save. This methods is called when creates/closes/opens a graph.- Parameters:
msg- The message to display.- Returns:
true- whether the user accepts to save the graph, or he cancels the current action.
-
getSwitchToWizard
- Returns:
- A reference to the action
SwitchToExactSolver.
-
getOldCursor
-
setOldCursor
-
setCursor
-
exit
public void exit()Sends an exit signal to main window -
showDefaultsEditor
public void showDefaultsEditor()Shows a DefaultEditor to edit Defaults parameters -
resetMouseState
public void resetMouseState()Used to reset mouseListener to default (to avoid File_Save / File_New operations while in inserting mode) -
isCellEditable
Returns true iff specified cell is editable. This is used bySelectStateto check if editor has to be showed upon double click event.- Parameters:
cell- specified cell- Returns:
- true iff cell is editable
-
handleException
Shows a panel with caught exception- Specified by:
handleExceptionin interfaceGuiInterface- Parameters:
e- exception to be shown
-
showErrorMessage
Shows a panel with an error message- Specified by:
showErrorMessagein interfaceGuiInterface- Parameters:
message- specified error message
-
toJMVA
public void toJMVA()Switch current model to JMVA exact solver -
editSimulationParameters
public void editSimulationParameters()Called when EditSimParams action is triggered -
editPAParameters
public void editPAParameters()Called when EditPAParams action is triggered -
editTemplate
public void editTemplate()Called when UseTemplate action is triggered -
setResultsWindow
Sets resultWindow to be shown. This method is used by pollerThread- Specified by:
setResultsWindowin interfaceGuiInterface- Parameters:
rsw- window to be set as current ResultsWindow
-
showResultsWindow
public void showResultsWindow(boolean selected) Called when showResults action is triggered- Parameters:
selected- Tells if show results button is selected or not Modified by Francesco D'Aquino
-
showResultsWindow
public void showResultsWindow()Shows results window and forces show results button to be selected- Specified by:
showResultsWindowin interfaceGuiInterface
-
getResultsWindow
Returns current ResultsWindow- Returns:
- current ResultsWindow or null if none was created
-
getPAProgressWindow
Returns current PAProgressWindow- Returns:
- current PAProgressWindow or null if none was created
-
about
public void about()Shows about window -
isSomethingSelected
public boolean isSomethingSelected()Tells if something is selected into graph window- Returns:
- true if something is selected
-
takeScreenShot
public void takeScreenShot()Takes a screenshot of current jgraph. Shows a dialog to select image type and name -
showRelatedPanel
public void showRelatedPanel(int problemType, int problemSubType, Object relatedStation, Object relatedClass) Shows the panel to solve a problem- Specified by:
showRelatedPanelin interfaceGuiInterface
-
isAnimationDisplayable
public boolean isAnimationDisplayable()Used to discover if the instance can display simulation animation- Specified by:
isAnimationDisplayablein interfaceGuiInterface- Returns:
- true if the instance can display simulation animation
-
getCellDimension
Gets the Dimension of a specified cell- Parameters:
cell-- Returns:
- the cell Dimension
-
addCellsToBlockingRegion
-
addSelectionToNewBlockingRegion
public void addSelectionToNewBlockingRegion()Adds a new blocking region that contains selected cells, if this does not overlap with existing one -
handlesBlockingRegionDrag
public void handlesBlockingRegionDrag()This method is used to reflect drag in and out a blocking region on data structure and to move dragged cells to background to use transparency of blocking region over them -
rotateComponent
Method that rotate components author Giuseppe De Cicco & Fabio Granara -
isInGroup
-
avoidOverlappingCell
-
forceAdjustGraph
public void forceAdjustGraph() -
tryAdjustGraph
public void tryAdjustGraph(boolean needConfirm) -
adjustGraph
public void adjustGraph() -
setIsReleased
public void setIsReleased(boolean state) -
getIsReleased
public boolean getIsReleased() -
zoomIn
public void zoomIn() -
zoomOut
public void zoomOut() -
setAnimationHolder
- Specified by:
setAnimationHolderin interfaceGuiInterface
-
getModel
-
getMainWindow
-
downloadDefaultTemplates
public void downloadDefaultTemplates() -
getBound
public double getBound() -
getFileName
- Specified by:
getFileNamein interfaceGuiInterface
-
toggleGrid
public void toggleGrid()Toggle enableGrid in the JGraph object if the grid was previously enabled, the grid is now disabled. if the grid was previously disabled, the grid is now enabled. -
snapCellByPort
If the grid is enabled, moves a JmtCell so that it one of its ports is snapped to the grid. Returns true if the cell was moved, false otherwise First we try to snap the input port, if it doesn't exists (ex :source) we snap the output port- Parameters:
cell- JmtCell- Returns:
- true if the cell was moved, otherwise returns false
-
rotateLeft
Set the angle of rotation in the attributes of the rotated cells Load the rotated image- Parameters:
cells- list of cells to rotate left
-
rotateRight
Set the angle of rotation in the attributes of the rotated cells Load the rotated image- Parameters:
cells- list of cells to rotate left
-
cancelEdgeDrawing
public void cancelEdgeDrawing()This function interrupt the drawing of an Edge For example if the user realised that he made a mistake -
loadImage
This function load the image of a station applying the right modifications (rotation or mirror) -
BezierConnectshowHelperBar
public void BezierConnectshowHelperBar()This function shows the helper bar for drawing Bezier Edges -
BezierConnecthideHelperBar
public void BezierConnecthideHelperBar()This function hides the helper bar for drawing Bezier Edges -
getBezierConnectionHelperBar
- Returns:
- the helper bar for the creation of Bezier Edges
-
updateLabelAfterMovingCell
This function updates the labels of all Bezier edges connected to a cell after the cell was moved The labels identify the broken arcs- Parameters:
cells- : the cells that were moved
-
editConnectionLabels
public void editConnectionLabels(Object sourceKey, Object targetKey, Point2D source, Point2D target, JmtEdge edge) Edit the labels the given connection A connection needs a labels if it contains one or several broken arcs. The labels are positioned on each side of the breakage to identify how they are connected- Parameters:
sourceKey- key of the station at the source of the edgetargetKey- key of the station at the target of the edgesource- position of the output port of the source stationtarget- position of the input port of the target stationedge- edge whose labels needs to be edited
-
toFront
-
toggleDebug
public void toggleDebug(boolean enable) -
editDebugParameter
public void editDebugParameter() -
simulationFinished
public void simulationFinished()Description copied from interface:GuiInterfaceUsed only for the AnimationPanel to update the table- Specified by:
simulationFinishedin interfaceGuiInterface
-