com.change_vision.jude.api.inf.editor
Interface UseCaseDiagramEditor

com.change_vision.jude.api.inf.editor.UseCaseDiagramEditor
All Superinterfaces:
BasicDiagramEditor, DiagramEditor, StructureDiagramEditor
All Implemented Interfaces:
BasicDiagramEditor, DiagramEditor, StructureDiagramEditor

public UseCaseDiagramEditor
extends StructureDiagramEditor

Interface to edit (create/delete) UseCase diagrams. Throws Exception when invalid models are generated.


Method Summary
abstract  IUseCaseDiagram createUseCaseDiagram(INamedElement owner, String name)
          Create a Class Diagram in a parent package.
 
Methods inherited from class com.change_vision.jude.api.inf.editor.StructureDiagramEditor
createContainmentGroup, createContainmentLinkPresentation, createGeneralizationGroup, createLinkPresentation, createNodePresentation, createNodePresentation, getContainmentGroup, getGeneralizationGroup
 
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, createLine, createRect, createText, delete, deleteDiagram, deletePresentation, getDiagram, setDiagram
 

Method Detail

createUseCaseDiagram

abstract IUseCaseDiagram createUseCaseDiagram(INamedElement owner,
                                              String name)
Create a Class Diagram in a parent package. Diagram is set to DiagramEditor (DiagramEditor.setDiagram(IDiagram diagram)) if the diagram is created successfully.

Parameters:
owner - Parent Package
name - name
Returns:
UseCase Diagram
Throws:
InvalidEditingException - InvalidEditingException occurs.
Keys: 
      PARAMETER_ERROR_KEY - if a parameter is not set properly. 
      ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. 
      NO_NAME_ERROR_KEY - if the name is empty. 
      NAME_DOUBLE_ERROR_KEY - An element with the same name already exists. 
      BAD_TRANSACTION_KEY - Bad Transaction. 
      HAS_EXCEPTION_KEY - if an exception has occurred.
Values: 
      Error messages for exceptions.