Package network.aika.debugger
Class AbstractViewManager<N,C extends AbstractConsoleManager,G extends AbstractGraphManager>
java.lang.Object
network.aika.debugger.AbstractViewManager<N,C,G>
- Direct Known Subclasses:
AbstractNeuronViewManager,ActivationViewManager
public abstract class AbstractViewManager<N,C extends AbstractConsoleManager,G extends AbstractGraphManager>
extends Object
- Author:
- Lukas Molzberger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Cprotected org.graphstream.ui.view.ViewerPipeprotected org.graphstream.graph.Graphprotected Gprotected org.graphstream.ui.swing_viewer.ViewPanelprotected booleanprotected org.graphstream.graph.Elementprotected org.graphstream.ui.layout.Layoutprotected JComponentprotected org.graphstream.ui.swing_viewer.SwingViewer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTemplateAttributes(org.graphstream.graph.Element e) voidapplyEdgeStyle(network.aika.neuron.Synapse s, org.graphstream.graph.Edge edge) voidabstract voidprotected voidvoidorg.graphstream.ui.view.camera.Cameraorg.graphstream.graph.GraphgetGraph()network.aika.ModelgetModel()getView()booleanvoidhighlightElement(org.graphstream.graph.Element ge) protected voidprotected JComponentinitView()booleanbooleanbooleanvoidpump()voidsetConsoleManager(C consoleManager) voidsetCoordinateListener(CoordinateListener<N> coordinateListener) voidsetDebugMode(boolean debugMode) voidsetHighlightEnabled(boolean highlightEnabled) voidsetMovedManually(String key, boolean v) voidsetScopeMode(boolean scopeMode) abstract voidshowElementContext(org.graphstream.ui.graphicGraph.GraphicElement ge) voidunhighlightElement(org.graphstream.graph.Element ge) voidviewClosed(String id)
-
Field Details
-
neuronTypeModifiers
-
synapseTypeModifiers
-
highlightEnabled
protected boolean highlightEnabled -
graph
protected org.graphstream.graph.Graph graph -
graphManager
-
consoleManager
-
layout
protected org.graphstream.ui.layout.Layout layout -
viewer
protected org.graphstream.ui.swing_viewer.SwingViewer viewer -
fromViewer
protected org.graphstream.ui.view.ViewerPipe fromViewer -
graphView
protected org.graphstream.ui.swing_viewer.ViewPanel graphView -
view
-
lastHighlighted
protected org.graphstream.graph.Element lastHighlighted
-
-
Constructor Details
-
AbstractViewManager
-
-
Method Details
-
addTemplateAttributes
protected void addTemplateAttributes(org.graphstream.graph.Element e) -
getCoordinateListener
-
setCoordinateListener
-
hasBeenMovedManually
-
setMovedManually
-
getConsoleManager
-
setConsoleManager
-
isDebugMode
public boolean isDebugMode() -
setDebugMode
public void setDebugMode(boolean debugMode) -
dumpViewPortInfo
protected void dumpViewPortInfo() -
isScopeMode
public boolean isScopeMode() -
setScopeMode
public void setScopeMode(boolean scopeMode) -
isHighlightEnabled
public boolean isHighlightEnabled() -
setHighlightEnabled
public void setHighlightEnabled(boolean highlightEnabled) -
enableAutoLayout
public void enableAutoLayout() -
disableAutoLayout
public void disableAutoLayout() -
getModel
public network.aika.Model getModel() -
getGraphManager
-
showElementContext
public abstract void showElementContext(org.graphstream.ui.graphicGraph.GraphicElement ge) -
getGraph
public org.graphstream.graph.Graph getGraph() -
getCamera
public org.graphstream.ui.view.camera.Camera getCamera() -
getView
-
initView
-
initModifiers
protected void initModifiers() -
applyEdgeStyle
public void applyEdgeStyle(network.aika.neuron.Synapse s, org.graphstream.graph.Edge edge) -
pump
public void pump() -
unhighlightElement
public void unhighlightElement(org.graphstream.graph.Element ge) -
highlightElement
public void highlightElement(org.graphstream.graph.Element ge) -
viewClosed
-
dumpNetworkCoordinates
public abstract void dumpNetworkCoordinates()
-