Package com.nomagic.magicdraw.uml
Class DiagramDescriptor
java.lang.Object
com.nomagic.magicdraw.uml.DiagramDescriptor
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
NonSymbolDiagramDescriptor
Descriptor of some extended diagram.
This descriptor is used to define a new diagram type in the MagicDraw application. New diagram type be extended from some already existing type. New diagram will have separate diagram panel with its own toolbar.
This descriptor is used to define a new diagram type in the MagicDraw application. New diagram type be extended from some already existing type. New diagram will have separate diagram panel with its own toolbar.
-
Method Summary
Modifier and TypeMethodDescriptionDiagram category name.Returns manager of actions used in the diagram.abstract DiagramContextAMConfigurator
abstract AMConfigurator
abstract AMConfigurator
abstract String
Return diagram type id.abstract String
Return diagram human name.abstract String
Return diagram human name.abstract URL
URL of small icon for diagram.abstract String
Returns super type of this diagram.abstract ResizableIcon
Resizable icon for diagram.abstract boolean
Returns creatable flag.boolean
Check if this diagram is used to draw symbols.void
setCategory
(String category) Set diagram category name.
-
Method Details
-
getSuperType
Returns super type of this diagram.- Returns:
- String the 'super diagram' type of the diagram type.
E.g.
Interaction Diagram
is a 'super diagram' forCollaboration Diagram
andSequence Diagram
.
-
isCreatable
@OpenApi public abstract boolean isCreatable()Returns creatable flag.- Returns:
- boolean flag indicating if the diagram will be creatable.
-
isUsedForSymbols
@OpenApi public boolean isUsedForSymbols()Check if this diagram is used to draw symbols. Some diagram may be used to display tables, graphs or other components (for example dependency matrix table)- Returns:
- true if diagram is used to draw symbols
-
getDiagramToolbarConfigurator
- Returns:
- AMConfigurator which configures described diagram toolbar.
-
getDiagramShortcutsConfigurator
- Returns:
- AMConfigurator which configures described diagram shortcuts.
-
getDiagramContextConfigurator
- Returns:
- AMConfigurator which configures described diagram context menu actions.
-
getDiagramTypeId
Return diagram type id. It is used to identify the diagram.- Returns:
- String used to identify diagram type.
- See Also:
-
getSingularDiagramTypeHumanName
Return diagram human name. It is used to show the diagram type in the UI.- Returns:
- human diagram name in singular.
-
getPluralDiagramTypeHumanName
Return diagram human name. It is used to show the diagram type in the UI.- Returns:
- human diagram name in plural.
-
getSVGIcon
Resizable icon for diagram. svg and wmf format. Used in Content diagram.- Returns:
- resizable icon in svg or wmf formats.
-
getSmallIconURL
URL of small icon for diagram. Used in browser and menu.- Returns:
- URL to icon shown diagram in browser and menu items.
-
getDiagramActions
Returns manager of actions used in the diagram. Later these actions must be configured for toolbar or shortcuts. Only one instance of action must be used in the configurators. If this rule is not applied, some problems may occur(for example changed by user keyboard shortcuts for action may not be saved).- Returns:
- manager of actions.
-
getCategory
Diagram category name.- Returns:
- diagram category
-
setCategory
Set diagram category name.- Parameters:
category
- category diagram category name
-