public class GUIHandler extends java.lang.Object implements java.awt.event.ComponentListener, java.awt.event.MouseMotionListener, java.awt.event.MouseListener, NetworkStateListener, NetworkObjectListener, LogListener
Modifier and Type | Class and Description |
---|---|
static class |
GUIHandler.EditingAction |
static class |
GUIHandler.EditModeAction |
static class |
GUIHandler.FullScreenAction |
static class |
GUIHandler.RedoAction |
static class |
GUIHandler.UndoAction |
static class |
GUIHandler.ZoomAction |
Constructor and Description |
---|
GUIHandler(GUI gui,
NetworkState state) |
Modifier and Type | Method and Description |
---|---|
void |
addLinkToState(mxLink mxl) |
void |
addProcessorToState(mxProcessor mxp) |
void |
clearLog() |
void |
componentHidden(java.awt.event.ComponentEvent e) |
void |
componentMoved(java.awt.event.ComponentEvent e) |
void |
componentResized(java.awt.event.ComponentEvent e) |
void |
componentShown(java.awt.event.ComponentEvent e) |
void |
copy(java.awt.event.ActionEvent e) |
void |
cut(java.awt.event.ActionEvent e) |
void |
delete(java.awt.event.ActionEvent e) |
void |
deselected() |
void |
editMode(int editMode) |
void |
exit() |
void |
exportImage() |
void |
fullscreen() |
void |
fullscreen(boolean b) |
java.lang.String[] |
getAlgorithms() |
boolean |
isPanningEvent(java.awt.event.MouseEvent e) |
void |
linkChange(Link p,
int eventID,
java.lang.Object caller) |
void |
linkSettingsUpdate(java.lang.String rowName,
java.lang.Object value,
Link l) |
void |
load() |
void |
loadAlgorithm() |
void |
logUpdate(java.lang.String msg) |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
networkObjectChange(NetworkObject object,
java.lang.Object oldvalue,
int eventID,
java.lang.Object caller) |
void |
networkSettingsUpdate(java.lang.String rowName,
java.lang.Object value) |
void |
newNetwork() |
void |
paste(java.awt.event.ActionEvent e) |
void |
pause() |
void |
play() |
void |
print() |
void |
processorChange(Processor p,
int eventID,
java.lang.Object caller) |
void |
processorSettingsUpdate(java.lang.String rowName,
java.lang.Object value,
Processor p) |
void |
redo() |
void |
register(java.lang.Object obj) |
void |
removeLinkFromState(mxLink mxl) |
void |
removeProcessorFromState(mxProcessor mxp) |
void |
reset() |
void |
resetLayout(boolean move) |
void |
save() |
void |
selectAll(java.awt.event.ActionEvent e) |
void |
selected(java.lang.Object[] cells) |
void |
selectNone(java.awt.event.ActionEvent e) |
void |
selectOnlyProcessors() |
void |
setCellStyle(com.mxgraph.model.mxCell cell,
java.lang.String style) |
void |
setCellText(com.mxgraph.model.mxCell cell,
java.lang.String text) |
void |
setDefaultAlgorithm(java.lang.String algorithm) |
void |
setLastLinkID(int id) |
void |
setLastProcessorID(int id) |
void |
setStatusBarMessage(java.lang.String msg) |
void |
settingsChange(java.lang.String name,
java.lang.Object value,
int eventID,
java.lang.Object caller) |
void |
showGrid() |
void |
showGrid(boolean b) |
void |
showLogWindow() |
void |
showLogWindow(boolean b) |
void |
showPropsTab() |
void |
showPropsTab(boolean b) |
void |
showToolsBar(boolean state) |
void |
statsChange(java.lang.String name,
java.lang.Object value,
int eventID,
java.lang.Object caller) |
void |
stop() |
void |
tickChange(int tickValue,
int eventID,
java.lang.Object caller) |
void |
undo() |
void |
warningCheck() |
void |
warningCheck(mxProcessor mxp) |
void |
zoomIn() |
void |
zoomOut() |
void |
zoomReset() |
public GUIHandler(GUI gui, NetworkState state)
public void register(java.lang.Object obj)
public void resetLayout(boolean move)
public void showLogWindow()
public void showLogWindow(boolean b)
public void showPropsTab()
public void showPropsTab(boolean b)
public void showGrid()
public void showGrid(boolean b)
public void showToolsBar(boolean state)
public void fullscreen()
public void fullscreen(boolean b)
public void play()
public void pause()
public void stop()
public void newNetwork()
public void save()
public void load()
public void reset()
public void exit()
public void print()
public void zoomIn()
public void zoomOut()
public void zoomReset()
public void undo()
public void redo()
public void exportImage()
public void cut(java.awt.event.ActionEvent e)
public void paste(java.awt.event.ActionEvent e)
public void selectOnlyProcessors()
public void copy(java.awt.event.ActionEvent e)
public void delete(java.awt.event.ActionEvent e)
public void selectAll(java.awt.event.ActionEvent e)
public void selectNone(java.awt.event.ActionEvent e)
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void selected(java.lang.Object[] cells)
public void editMode(int editMode)
public void setLastProcessorID(int id)
public void setLastLinkID(int id)
public boolean isPanningEvent(java.awt.event.MouseEvent e)
public void setCellStyle(com.mxgraph.model.mxCell cell, java.lang.String style)
public void setCellText(com.mxgraph.model.mxCell cell, java.lang.String text)
public void setStatusBarMessage(java.lang.String msg)
public void logUpdate(java.lang.String msg)
logUpdate
in interface LogListener
public void clearLog()
public void networkSettingsUpdate(java.lang.String rowName, java.lang.Object value)
public void processorChange(Processor p, int eventID, java.lang.Object caller)
processorChange
in interface NetworkStateListener
public void linkChange(Link p, int eventID, java.lang.Object caller)
linkChange
in interface NetworkStateListener
public void settingsChange(java.lang.String name, java.lang.Object value, int eventID, java.lang.Object caller)
settingsChange
in interface NetworkStateListener
public void statsChange(java.lang.String name, java.lang.Object value, int eventID, java.lang.Object caller)
statsChange
in interface NetworkStateListener
public void tickChange(int tickValue, int eventID, java.lang.Object caller)
tickChange
in interface NetworkStateListener
public void addProcessorToState(mxProcessor mxp)
public void addLinkToState(mxLink mxl)
public void removeProcessorFromState(mxProcessor mxp)
public void removeLinkFromState(mxLink mxl)
public void deselected()
public void processorSettingsUpdate(java.lang.String rowName, java.lang.Object value, Processor p)
public void linkSettingsUpdate(java.lang.String rowName, java.lang.Object value, Link l)
public void loadAlgorithm()
public void setDefaultAlgorithm(java.lang.String algorithm)
public void warningCheck()
public void warningCheck(mxProcessor mxp)
public java.lang.String[] getAlgorithms()
public void networkObjectChange(NetworkObject object, java.lang.Object oldvalue, int eventID, java.lang.Object caller)
networkObjectChange
in interface NetworkObjectListener