|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.change_vision.jude.api.inf.editor.DiagramEditor
public DiagramEditor
Interface to edit (create/delete) diagrams. Throws Exception when invalid models are generated.
| Method Summary | |
|---|---|
abstract INodePresentation |
createImage(Image image,
Point2D location)
Create a Image Presentation. |
abstract ILinkPresentation |
createLine(Point2D point1,
Point2D point2)
Create a Line Presentation. |
abstract INodePresentation |
createRect(Point2D location,
double width,
double height)
Create a Rect Presentation. |
abstract INodePresentation |
createText(String text,
Point2D location)
Create a Text Presentation. |
abstract void |
delete(IDiagram diagram)
Delete a diagram from a project. |
abstract void |
deleteDiagram()
Delete diagram in DiagramEditor from a project. |
abstract void |
deletePresentation(IPresentation presentation)
Delete Presentation from a project. |
abstract IDiagram |
getDiagram()
Get Diagram in DiagramEditor. |
abstract void |
setDiagram(IDiagram diagram)
Set Diagram to DiagramEditor. |
| Method Detail |
|---|
abstract void delete(IDiagram diagram)
element - Diagram
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 IDiagram getDiagram()
abstract void setDiagram(IDiagram diagram)
diagram - diagram.
InvalidEditingException - InvalidEditingException occurs.
Keys:
PARAMETER_ERROR_KEY - if a parameter is not set properly.
READ_ONLY_KEY - if a read-only element is edited.
Values:
Error messages for exceptions.abstract void deleteDiagram()
InvalidEditingException - InvalidEditingException occurs.
Keys:
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 deletePresentation(IPresentation presentation)
presentation - Presentation
InvalidEditingException - InvalidEditingException occurs.
Keys:
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 createText(String text,
Point2D location)
text - charactors of Textlocation - location
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 INodePresentation createImage(Image image,
Point2D location)
image - imagelocation - location
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 INodePresentation createRect(Point2D location,
double width,
double height)
location - locationwidth - Width should be larger than 20.height - Height should be larger than 20.
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 ILinkPresentation createLine(Point2D point1,
Point2D point2)
point1 - start locationpoint2 - end location
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||