com.change_vision.jude.api.gsn.editor
Interface GsnDiagramEditor

com.change_vision.jude.api.gsn.editor.GsnDiagramEditor
All Superinterfaces:
BasicDiagramEditor, DiagramEditor
All Implemented Interfaces:
BasicDiagramEditor, DiagramEditor

public abstract GsnDiagramEditor
extends BasicDiagramEditor

Interface to create presentations in GSN Diagram. Throws Exception when invalid models are generated.


Method Summary
abstract  IGsnDiagram createGsnDiagram(IModule owner, String name)
          Crate a GSN diagram in a parent module.
abstract  ILinkPresentation createLinkPresentation(IRelationship model, INodePresentation source, INodePresentation target)
          Create a Link Presentation.
abstract  INodePresentation createNodePresentation(IArgumentAsset model, Point2D location)
          Create a Presentation on a diagram.
abstract  INodePresentation createNodePresentation(IArgumentAsset model, INodePresentation parent, Point2D location)
          Create a Presentation on a parent.
 
Methods inherited from class com.change_vision.jude.api.inf.editor.BasicDiagramEditor
createNote, createNoteAnchor, createNoteAnchor
 
Methods inherited from class com.change_vision.jude.api.inf.editor.DiagramEditor
createImage, createImage, createLine, createRect, createText, delete, deleteDiagram, deletePresentation, getDiagram, setDiagram
 

Method Detail

createGsnDiagram

abstract IGsnDiagram createGsnDiagram(IModule owner,
                                      String name)
Crate a GSN diagram in a parent module. Diagram is set to DiagramEditor (DiagramEditor.setDiagram(IDiagram diagram)) if the diagram is created successfully.

Parameters:
owner - Parent Module
name - GSN Diagram Name
Returns:
GSN Diagram
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys:
       PARAMETER_ERROR_KEY - if a parameter is not set properly.
       NO_NAME_ERROR_KEY - if the name is empty.
       INVALID_PARENT_KEY - if the parent is invalid.
       NAME_DOUBLE_ERROR_KEY - if the name is duplication.
       INVALID_OWNER_KEY - if the owner is invalid.
Values:
       Error messages for exceptions.

createNodePresentation

abstract INodePresentation createNodePresentation(IArgumentAsset model,
                                                  Point2D location)
Create a Presentation on a diagram.

Parameters:
model - model
location - location on the diagram
Returns:
Presentation
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys:
       PARAMETER_ERROR_KEY - if a parameter is not set properly.
       NO_TARGET_DIAGRAM_KEY - if target Diagram is not set.
       INVALID_DIAGRAM_ERROR_KEY - if a diagram of an element is not correct.
Values:
       Error messages for exceptions.

createNodePresentation

abstract INodePresentation createNodePresentation(IArgumentAsset model,
                                                  INodePresentation parent,
                                                  Point2D location)
Create a Presentation on a parent.

Parameters:
model - model
parent - parent Presentation
location - location on the diagram
Returns:
Presentation
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys:
       PARAMETER_ERROR_KEY - if a parameter is not set properly.
       INVALID_PARENT_KEY - if the parent is invalid.
       NO_TARGET_DIAGRAM_KEY - if target Diagram is not set.
       INVALID_DIAGRAM_ERROR_KEY - if a diagram of an element is not correct.
Values:
       Error messages for exceptions.

createLinkPresentation

abstract ILinkPresentation createLinkPresentation(IRelationship model,
                                                  INodePresentation source,
                                                  INodePresentation target)
Create a Link Presentation.

Parameters:
model - model
source - source Presentation
target - target Presentation
Returns:
Link Presentation
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys:
       PARAMETER_ERROR_KEY - if a parameter is not set properly.
       NO_TARGET_DIAGRAM_KEY - if target Diagram is not set.
       INVALID_DIAGRAM_ERROR_KEY - if a diagram of an element is not correct.
Values:
       Error messages for exceptions.