|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.change_vision.jude.api.inf.editor.MindmapEditor
public MindmapEditor
Interface to edit (create/delete) Mind Map. Throws Exception when invalid models are generated.
Method Summary | |
---|---|
abstract void |
changeToFloatingTopic(INodePresentation topic)
Change the specified topic to a floating topic. |
abstract IMindMapDiagram |
createMindmapDiagram(INamedElement parent,
String rootTopicLabel)
Create a mind map in a parent package. |
abstract ILinkPresentation |
createMMLinkPresentation(INodePresentation source,
INodePresentation target)
Create a MMLink Presentation. |
abstract INodePresentation |
createTopic(INodePresentation parent,
String label)
Create a child topic to a parent topic. |
abstract INodePresentation |
createTopic(INodePresentation parent,
String label,
String position)
Create a child topic to a parent topic by specifying a position. |
abstract INodePresentation |
createTopic(INodePresentation parent,
String label,
int index)
Create a child topic to a parent topic by specifying an index. |
abstract INodePresentation |
createTopic(INodePresentation parent,
String label,
int index,
String position)
Create a child topic to a parent topic by specifying an index and a position. |
abstract void |
deleteChildren(INodePresentation parent)
Delete all child topics of the parent. |
abstract void |
deleteImage(INodePresentation topic)
Delete an image from a topic. |
abstract void |
moveTo(INodePresentation topic,
INodePresentation parent)
Move a topic to a parent topic. |
abstract void |
moveTo(INodePresentation topic,
INodePresentation parent,
String position)
Move a topic to a parent topic by specifying a position. |
abstract void |
moveTo(INodePresentation topic,
INodePresentation parent,
int index)
Move a topic to a parent topic by specifying an index. |
abstract void |
moveTo(INodePresentation topic,
INodePresentation parent,
int index,
String position)
Move a topic to a parent topic by specifying an index and a position. |
abstract void |
setBoundaryVisibility(INodePresentation topic,
boolean visibility)
Set if a boundary to a topic should be shown. |
abstract void |
setImage(INodePresentation topic,
Image image)
Set an image to a topic. |
abstract void |
setImageSize(INodePresentation topic,
double width,
double height)
Set size of an topic's image. |
Methods inherited from class com.change_vision.jude.api.inf.editor.DiagramEditor |
---|
createImage, createLine, createRect, createText, delete, deleteDiagram, deletePresentation, getDiagram, setDiagram |
Method Detail |
---|
abstract IMindMapDiagram createMindmapDiagram(INamedElement parent, String rootTopicLabel)
parent
- Parent PackagerootTopicLabel
- Mind Map Name (Root Topic Name)
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly NO_NAME_ERROR_KEY - if the name is empty. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred.
Values: Error messages for exceptions.
abstract INodePresentation createTopic(INodePresentation parent, String label)
parent
- Parent Topiclabel
- Child Topic Name
InvalidEditingException
- invalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. 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.
abstract INodePresentation createTopic(INodePresentation parent, String label, String position)
parent
- Parent Topiclabel
- Child Topic Nameposition
- Position of Child Topic ("left" or "right")
InvalidEditingException
- invalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. 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.
abstract INodePresentation createTopic(INodePresentation parent, String label, int index)
parent
- Parent Topiclabel
- Child Topic Nameindex
- Index of Child Topic
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. 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.
abstract INodePresentation createTopic(INodePresentation parent, String label, int index, String position)
parent
- Parent Topiclabel
- Child Topic Nameindex
- Index of Child Topicposition
- Position of Child Topic ("left" or "right")
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. 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.
abstract void moveTo(INodePresentation topic, INodePresentation parent)
parent
- Parent Topictopic
- Child Topic to be moved
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly INVALID_MINDMAP_TOPIC_MOVE_ERROR_KEY - if a topic is moved to another topic in a different diagram or to itself. 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.
abstract void moveTo(INodePresentation topic, INodePresentation parent, String position)
parent
- Parent Topictopic
- Child Topic to be movedposition
- Position of Child Topic ("left" or "right")
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly INVALID_MINDMAP_TOPIC_MOVE_ERROR_KEY - if a topic is moved to another topic in a different diagram or to itself. 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.
abstract void moveTo(INodePresentation topic, INodePresentation parent, int index)
parent
- Parent Topictopic
- Child Topic to be movedindex
- Index of Child Topic
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly INVALID_MINDMAP_TOPIC_MOVE_ERROR_KEY - if a topic is moved to another topic in a different diagram or to itself. 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.
abstract void moveTo(INodePresentation topic, INodePresentation parent, int index, String position)
parent
- Parent Topictopic
- Child Topic to be movedindex
- Index of Child Topicposition
- Position of Child Topic ("left" or "right")
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly INVALID_MINDMAP_TOPIC_MOVE_ERROR_KEY - if a topic is moved to another topic in a different diagram or to itself. 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.
abstract void deleteChildren(INodePresentation parent)
parent
- Parent Topic
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly 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.
abstract ILinkPresentation createMMLinkPresentation(INodePresentation source, INodePresentation target)
linkEnd0
- the presentation connected to one side of the linklinkEnd1
- the presentation connected to one side of the link
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.
abstract void setImage(INodePresentation topic, Image image)
topic
- topicimage
- image
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. 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.
abstract void deleteImage(INodePresentation topic)
topic
- topic
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. 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.
abstract void setImageSize(INodePresentation topic, double width, double height)
topic
- topicwidth
- image width(except 0. If width is a negative value, maintain the aspect ratio of the original image dimensions.)height
- image height(except 0. If height is a negative value, maintain the aspect ratio of the original image dimensions.)
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. 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.
abstract void setBoundaryVisibility(INodePresentation topic, boolean visibility)
topic
- Topicvisibility
- true Boundary should be shown / false Boundary shouldn't be shown
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. 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.
abstract void changeToFloatingTopic(INodePresentation topic)
topic
- Topic to cut off as a floating topic
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |