com.ebmwebsourcing.geasytools.diagrameditor
Class DiagramController

java.lang.Object
  extended by 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)
           
 
Method Summary
 void addLoaderHandler(IDiagramViewLoaderHandler handler)
           
 void addRuleNotificationHandler(IRuleNotificationHandler handler)
           
 void addValidationHandler(IValidationHandler handler)
           
 void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
           
 com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IDiagram getDiagramInterchangeModel(boolean getWithRelativeCoordinates)
           
 com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IModelElement getDiagramSyntaxModel()
          Returns actual diagram Syntax Model if validation pass otherwise returns null
 IEditorView getEditorView()
           
protected  DiagramElementViewStateHandler getGraphicStateHandler()
           
 com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IMainModelElement getMainModelElement()
           
protected  com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IMainModelElement getMainModelElementWithoutValidation()
           
 IRuleNotificationRegistry getNotificationRegistry()
           
 IRuleNotificationView getRuleNotificationView()
           
protected  DiagramElementViewSyntaxModelBinderHandler getSyntaxModelBinderHandler()
           
 void loadDiagram(com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.interchange.api.IDiagram diagramInterchange, boolean getWithRelativeCoordinates)
           
 void redo()
           
 void removeSelectedElements()
           
 void setEditorView(IEditorView editorView)
           
 void setNotificationView(IRuleNotificationView view)
           
 void undo()
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.