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

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

public ParametricDiagramEditor
extends BasicDiagramEditor


Method Summary
abstract  ILinkPresentation createLinkPresentation(IElement model, INodePresentation linkEnd0, INodePresentation linkEnd1)
          Create a ILinkPresentation.
abstract  INodePresentation createNodePresentation(IElement model, Point2D location)
          Create a INodePresentation.
abstract  INodePresentation createNodePresentation(IElement model, INodePresentation container, Point2D location)
          Create a INodePresentation.
abstract  IParametricDiagram createParametricDiagram(IBlock owner, String name)
          Create a parametric Diagram in a parent block.
abstract  IParametricDiagram createParametricDiagram(IConstraintBlock owner, String name)
          Create a parametric Diagram in a constraint block.
abstract  INodePresentation createValuePropertyPresentation(String name, Point2D location)
          Create a value property presentation in diagram.
abstract  INodePresentation createValuePropertyPresentation(IAttribute[] attributeHierarchicalPath, Point2D location)
          Create a value property presentation in diagram by valueProperty in its part's hierarchy.
 
Methods inherited from class com.change_vision.jude.api.inf.editor.BasicDiagramEditor
createNote, createNoteAnchor, createNoteAnchor, createProblemNote, createRationaleNote
 
Methods inherited from class com.change_vision.jude.api.inf.editor.DiagramEditor
createImage, createLine, createRect, createText, delete, deleteDiagram, deletePresentation, getDiagram, setDiagram
 

Method Detail

createParametricDiagram

abstract IParametricDiagram createParametricDiagram(IBlock owner,
                                                    String name)
Create a parametric Diagram in a parent block. Diagram is set to DiagramEditor (DiagramEditor.setDiagram(IDiagram diagram)) if the diagram is created successfully. Constraint parameters and constraint properties are created in default on the diagram if constraint parameters are held by the owner.

Parameters:
owner - Parent Package
name - name
Returns:
parametric 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.

createParametricDiagram

abstract IParametricDiagram createParametricDiagram(IConstraintBlock owner,
                                                    String name)
Create a parametric Diagram in a constraint block. Diagram is set to DiagramEditor (DiagramEditor.setDiagram(IDiagram diagram)) if the diagram is created successfully. Constraint parameters and constraint properties are created in default on the diagram if constraint parameters are held by the owner.

Parameters:
owner - Parent Package
name - name
Returns:
Parametric 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.

createNodePresentation

abstract INodePresentation createNodePresentation(IElement model,
                                                  Point2D location)
Create a INodePresentation.

Parameters:
model - model
location - location
Returns:
INodePresentation.
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. 
      READ_ONLY_KEY - if a read-only element is edited.
Values: 
      Error messages for exceptions.

createNodePresentation

abstract INodePresentation createNodePresentation(IElement model,
                                                  INodePresentation container,
                                                  Point2D location)
Create a INodePresentation.

Parameters:
model - model
container - Parent Part
location - location
Returns:
INodePresentation.
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. 
      READ_ONLY_KEY - if a read-only element is edited.
Values: 
      Error messages for exceptions.

createLinkPresentation

abstract ILinkPresentation createLinkPresentation(IElement model,
                                                  INodePresentation linkEnd0,
                                                  INodePresentation linkEnd1)
Create a ILinkPresentation.

Parameters:
model - model
linkEnd0 - the presentation connected to one side of the link
linkEnd1 - the presentation connected to one side of the link
Returns:
ILinkPresentation.
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. 
      READ_ONLY_KEY - if a read-only element is edited.
Values: 
      Error messages for exceptions.

createValuePropertyPresentation

abstract INodePresentation createValuePropertyPresentation(String name,
                                                           Point2D location)
Create a value property presentation in diagram.

Parameters:
name - name
location - location
Returns:
value property presentation created
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.

createValuePropertyPresentation

abstract INodePresentation createValuePropertyPresentation(IAttribute[] attributeHierarchicalPath,
                                                           Point2D location)
Create a value property presentation in diagram by valueProperty in its part's hierarchy.

Parameters:
attributeHierarchicalPath - ValueProperty in its Part's hierarchy
location - location
Returns:
value property presentation created
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.