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

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

public abstract ERDiagramEditor
extends BasicDiagramEditor

Exception when invalid models are generated.


Method Summary
abstract  int createERDiagram(int owner, String name)
          Diagram.
abstract  ILinkPresentation createLinkPresentation(IElement model, INodePresentation source, INodePresentation target)
           
abstract  INodePresentation createNodePresentation(IElement model, Point2D location)
           
abstract  INodePresentation createSubtypeRelationshipGroup(ILinkPresentation[] subtypeRelationships, String direction)
          relationships.
abstract  INodePresentation getSubtypeRelationshipGroup(ILinkPresentation subtypeRelationship)
          relation.
 
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

createERDiagram

abstract int createERDiagram(int owner,
                             String name)
Diagram. Diagram is set to DiagramEditor (DiagramEditor.setDiagram(IDiagram diagram)) if the diagram is created successfully.

Parameters:
owner -
name -
Returns:
       Keys:
       
       Values:
       
       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.
       
Throws:
InvalidEditingException

createLinkPresentation

abstract ILinkPresentation createLinkPresentation(IElement model,
                                                  INodePresentation source,
                                                  INodePresentation target)
Parameters:
model -
source -
target -
Returns:
       Keys:
       
       Values:
       
       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.
       READ_ONLY_KEY - if a read-only element is edited.
       
       Values:
       Error messages for exceptions.
       
Throws:
InvalidEditingException

createNodePresentation

abstract INodePresentation createNodePresentation(IElement model,
                                                  Point2D location)
Parameters:
model -
location -
Returns:
       Keys:
       
       Values:
       
       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.
       READ_ONLY_KEY - if a read-only element is edited.
       
       Values:
       Error messages for exceptions.
       
Throws:
InvalidEditingException

getSubtypeRelationshipGroup

abstract INodePresentation getSubtypeRelationshipGroup(ILinkPresentation subtypeRelationship)
relation.

Parameters:
subtypeRelationship -
Returns:
shared containments. Null is returned if the containment doesn't have the shared style.

createSubtypeRelationshipGroup

abstract INodePresentation createSubtypeRelationshipGroup(ILinkPresentation[] subtypeRelationships,
                                                          String direction)
relationships.

Parameters:
subtypeRelationships -
direction -
Returns:
       Keys:
       
Values:
       
       Keys:
       PARAMETER_ERROR_KEY - if a parameter is not set properly.
       
Values:
       Error messages for exceptions.
       
Throws:
InvalidEditingException