com.ebmwebsourcing.geasytools.diagrameditor
Class DiagramController
java.lang.Object
com.ebmwebsourcing.geasytools.diagrameditor.DiagramController
- All Implemented Interfaces:
- IDiagramController, com.google.gwt.event.shared.HasHandlers
public class DiagramController
- extends java.lang.Object
- implements IDiagramController
|
Constructor Summary |
DiagramController(IDiagramView diagramUI,
IEditorView editorView,
com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IMainModelElement mainModel)
|
DiagramController(IDiagramView diagramUI,
com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IMainModelElement mainModel)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiagramController
public DiagramController(IDiagramView diagramUI,
com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IMainModelElement mainModel)
DiagramController
public DiagramController(IDiagramView diagramUI,
IEditorView editorView,
com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IMainModelElement mainModel)
getGraphicStateHandler
protected DiagramElementViewStateHandler getGraphicStateHandler()
getSyntaxModelBinderHandler
protected DiagramElementViewSyntaxModelBinderHandler getSyntaxModelBinderHandler()
setNotificationView
public void setNotificationView(IRuleNotificationView view)
loadDiagram
public void loadDiagram(com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IDiagram diagramInterchange,
boolean getWithRelativeCoordinates)
getDiagramInterchangeModel
public com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IDiagram getDiagramInterchangeModel(boolean getWithRelativeCoordinates)
getDiagramSyntaxModel
public com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IModelElement getDiagramSyntaxModel()
throws DiagramValidationException
- Returns actual diagram Syntax Model if validation pass
otherwise returns null
- Returns:
-
- Throws:
DiagramValidationException
setEditorView
public void setEditorView(IEditorView editorView)
getEditorView
public IEditorView getEditorView()
addLoaderHandler
public void addLoaderHandler(IDiagramViewLoaderHandler handler)
addValidationHandler
public void addValidationHandler(IValidationHandler handler)
addRuleNotificationHandler
public void addRuleNotificationHandler(IRuleNotificationHandler handler)
undo
public void undo()
redo
public void redo()
validate
public void validate()
throws DiagramValidationException
- Throws:
DiagramValidationException
fireEvent
public void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
- Specified by:
fireEvent in interface com.google.gwt.event.shared.HasHandlers
getNotificationRegistry
public IRuleNotificationRegistry getNotificationRegistry()
- Specified by:
getNotificationRegistry in interface IDiagramController
getRuleNotificationView
public IRuleNotificationView getRuleNotificationView()
- Specified by:
getRuleNotificationView in interface IDiagramController
getMainModelElement
public com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IMainModelElement getMainModelElement()
throws DiagramValidationException
- Specified by:
getMainModelElement in interface IDiagramController
- Throws:
DiagramValidationException
getMainModelElementWithoutValidation
protected com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IMainModelElement getMainModelElementWithoutValidation()
removeSelectedElements
public void removeSelectedElements()
- Specified by:
removeSelectedElements in interface IDiagramController
Copyright © 2010-2011 Petals Link. All Rights Reserved.