Package com.nomagic.magicdraw.ui.actions
Class BaseDiagramContextAMConfigurator
- java.lang.Object
-
- com.nomagic.magicdraw.ui.actions.BaseDiagramContextAMConfigurator
-
- All Implemented Interfaces:
ConfiguratorWithPriority,DiagramContextAMConfigurator,PriorityProvider
- Direct Known Subclasses:
ActivityDiagramContextAMConfigurator,ClassDiagramContextAMConfigurator,CollaborationDiagramContextAMConfigurator,CompositeStructureDiagramContextAMConfigurator,SequenceDiagramContextAMConfigurator,StateDiagramContextAMConfigurator
@OpenApiAll public class BaseDiagramContextAMConfigurator extends java.lang.Object implements DiagramContextAMConfigurator
Configure context menu, adds relations menu items
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLayoutID-
Fields inherited from interface com.nomagic.magicdraw.utils.PriorityProvider
HIGH_PRIORITY, LOW_PRIORITY, MEDIUM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description BaseDiagramContextAMConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected, PresentationElement requester)Configure given actions manager for given diagram.protected voidconfigureDiagramActions(ActionsManager manager, DiagramPresentationElement dpe)protected voidconfigureMultipleSelectionActions(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected)protected voidconfigureSingleSelectionActions(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected, PresentationElement requester)protected ActionsCategorycreateLayoutActionsCategory()intgetPriority()Returns priority of this configurator.
-
-
-
Field Detail
-
LayoutID
public static final java.lang.String LayoutID
- See Also:
- Constant Field Values
-
-
Method Detail
-
configure
public void configure(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected, PresentationElement requester)
Configure given actions manager for given diagram.- Specified by:
configurein interfaceDiagramContextAMConfigurator- Parameters:
manager- the given actions manager.diagram- the given diagram panel.selected- the selected object in the diagram.requester- object which requests actions, can be null if requester is diagram window.
-
configureSingleSelectionActions
protected void configureSingleSelectionActions(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected, PresentationElement requester)
-
configureMultipleSelectionActions
protected void configureMultipleSelectionActions(ActionsManager manager, DiagramPresentationElement diagram, PresentationElement[] selected)
-
configureDiagramActions
protected void configureDiagramActions(ActionsManager manager, DiagramPresentationElement dpe)
-
createLayoutActionsCategory
protected ActionsCategory createLayoutActionsCategory()
-
getPriority
public int getPriority()
Description copied from interface:ConfiguratorWithPriorityReturns priority of this configurator. All configurators are sorted by priority before configuration. This is very important if one configurator expects input from other configurators. In such case configurator must have lower priority than others.- Specified by:
getPriorityin interfaceConfiguratorWithPriority- Specified by:
getPriorityin interfacePriorityProvider- Returns:
- priority of this configurator.
- See Also:
PriorityProvider.HIGH_PRIORITY,PriorityProvider.MEDIUM_PRIORITY,PriorityProvider.LOW_PRIORITY
-
-