|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkieker.webgui.web.beans.view.AnalysisEditorGraphBean
@Component @Scope(value="view") public final class AnalysisEditorGraphBean
This bean contains the necessary data behind an graph of the analysis editor. It provides various methods to manipulate the current graph.
The class is a Spring managed bean with view scope to make sure that one user (even in one session) can open multiple projects at a time without causing any
problems.
| Constructor Summary | |
|---|---|
AnalysisEditorGraphBean()
Creates a new instance of this class. |
|
| Method Summary | |
|---|---|
void |
addComponent(kieker.analysis.model.analysisMetaModel.MIFilter filter)
Adds a filter to the graph. |
void |
addComponent(kieker.analysis.model.analysisMetaModel.MIReader reader)
Adds a reader to the graph. |
void |
addComponent(kieker.analysis.model.analysisMetaModel.MIRepository repository)
Adds a repository to the graph. |
void |
addConnection(kieker.analysis.model.analysisMetaModel.MIPlugin source,
kieker.analysis.model.analysisMetaModel.MIPlugin target,
kieker.analysis.model.analysisMetaModel.MIOutputPort outputPort,
kieker.analysis.model.analysisMetaModel.MIInputPort inputPort)
Adds a connection between two components to the graph. |
void |
addConnection(kieker.analysis.model.analysisMetaModel.MIPlugin source,
kieker.analysis.model.analysisMetaModel.MIRepository target,
kieker.analysis.model.analysisMetaModel.MIRepositoryConnector repositoryPort)
Adds a connection between two components to the graph. |
void |
addGlobalConfigurationInstance(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent globalConfigurationInstance)
Adds a non removable node for the global configuration of the project. |
void |
addGraphListener(IGraphListener graphListener)
Adds a listener to the graph. |
void |
addProject(kieker.analysis.model.analysisMetaModel.MIProject project)
Adds a project to the graph. |
void |
declareGraph()
Declares the graph. |
void |
deleteComponent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent component)
Deletes a component from the graph. |
void |
deleteConnection(kieker.analysis.model.analysisMetaModel.MIPlugin source,
kieker.analysis.model.analysisMetaModel.MIPlugin target,
kieker.analysis.model.analysisMetaModel.MIOutputPort outputPort,
kieker.analysis.model.analysisMetaModel.MIInputPort inputPort)
Deletes a connection between two components within the graph. |
void |
deleteConnection(kieker.analysis.model.analysisMetaModel.MIPlugin source,
kieker.analysis.model.analysisMetaModel.MIRepository target,
kieker.analysis.model.analysisMetaModel.MIRepositoryConnector repositoryPort)
Deletes a connection between two components within the graph. |
void |
initializeListeners()
Initializes the listener for the graph. |
boolean |
isGridEnabled()
|
boolean |
isSnapEnabled()
|
void |
jsAddConnectionEvent()
This method is called from JavaScript. |
void |
jsAutoLayoutEvent()
This method is called from JavaScript. |
void |
jsDeleteComponentEvent()
This method is called from JavaScript. |
void |
jsDeleteConnectionEvent()
This method is called from JavaScript. |
void |
jsSelectComponentEvent()
This method is called from JavaScript. |
void |
loadLayout(String layout)
Loads a layout for the graph. |
void |
renameComponent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent component,
String newName)
Renames a component within the graph. |
void |
scaleToFit()
Scales the graph to fit into the window. |
void |
selectComponent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent analysisComponent)
Selects a given component. |
void |
setGridColor(String color)
Sets the color of the grid to a new value. |
void |
setGridSize(int size)
Sets the size of the grid to a new value. |
void |
startAutoLayout()
Starts the auto layout of the graph. |
void |
switchGrid()
Switches the visibility of the grid. |
void |
switchSnap()
Switches the state of the snap mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnalysisEditorGraphBean()
| Method Detail |
|---|
public void declareGraph()
public void initializeListeners()
public void addGraphListener(IGraphListener graphListener)
graphListener - The new listener.public void addProject(kieker.analysis.model.analysisMetaModel.MIProject project)
project - The project to add to the graph.public void addGlobalConfigurationInstance(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent globalConfigurationInstance)
globalConfigurationInstance - The non removable node to be added.public void addComponent(kieker.analysis.model.analysisMetaModel.MIReader reader)
reader - The reader to be added.public void addComponent(kieker.analysis.model.analysisMetaModel.MIFilter filter)
filter - The filter to be added.public void addComponent(kieker.analysis.model.analysisMetaModel.MIRepository repository)
repository - The repository to be added.public void deleteComponent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent component)
component - The component to be deleted.
public void renameComponent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent component,
String newName)
component - The component to rename.newName - The new name of the component.
public void addConnection(kieker.analysis.model.analysisMetaModel.MIPlugin source,
kieker.analysis.model.analysisMetaModel.MIPlugin target,
kieker.analysis.model.analysisMetaModel.MIOutputPort outputPort,
kieker.analysis.model.analysisMetaModel.MIInputPort inputPort)
source - The source node.target - The target node.outputPort - The output port of the source node.inputPort - The input port of the target node.
public void addConnection(kieker.analysis.model.analysisMetaModel.MIPlugin source,
kieker.analysis.model.analysisMetaModel.MIRepository target,
kieker.analysis.model.analysisMetaModel.MIRepositoryConnector repositoryPort)
source - The source node.target - The target node.repositoryPort - The repository port of the source node.
public void deleteConnection(kieker.analysis.model.analysisMetaModel.MIPlugin source,
kieker.analysis.model.analysisMetaModel.MIPlugin target,
kieker.analysis.model.analysisMetaModel.MIOutputPort outputPort,
kieker.analysis.model.analysisMetaModel.MIInputPort inputPort)
source - The source node.target - The target node.outputPort - The output port of the source node.inputPort - The input port of the target node.
public void deleteConnection(kieker.analysis.model.analysisMetaModel.MIPlugin source,
kieker.analysis.model.analysisMetaModel.MIRepository target,
kieker.analysis.model.analysisMetaModel.MIRepositoryConnector repositoryPort)
source - The source node.target - The target node.repositoryPort - The repository port of the source node.public void selectComponent(kieker.analysis.model.analysisMetaModel.MIAnalysisComponent analysisComponent)
analysisComponent - The component to select.public void switchGrid()
public void switchSnap()
public boolean isGridEnabled()
public boolean isSnapEnabled()
public void setGridColor(String color)
color - The new color of the grid.public void setGridSize(int size)
size - The new size of the grid.public void scaleToFit()
public void startAutoLayout()
public void loadLayout(String layout)
layout - The new layout of the graph.public void jsSelectComponentEvent()
public void jsDeleteComponentEvent()
public void jsAddConnectionEvent()
public void jsDeleteConnectionEvent()
public void jsAutoLayoutEvent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||