Class BaseCustomizableDiagramAction

java.lang.Object
javax.swing.AbstractAction
com.nomagic.actions.NMAction
com.nomagic.actions.BaseNMStateAction
com.nomagic.actions.NMStateAction
com.nomagic.magicdraw.actions.MDStateAction
com.dassault_systemes.modeler.magic.ui.diagrams.actions.DefaultAbstractDiagramStateAction
com.dassault_systemes.modeler.magic.ui.diagrams.actions.BaseAbstractDiagramAction
com.nomagic.magicdraw.ui.actions.BaseDiagramAction
com.nomagic.magicdraw.ui.diagrams.BaseCustomizableDiagramAction
All Implemented Interfaces:
com.dassault_systemes.modeler.magic.ui.diagrams.actions.AbstractDiagramAction, com.nomagic.magicdraw.actions.ShortcutSchemaAction, ActionListener, Serializable, Cloneable, Comparable, EventListener, Action
Direct Known Subclasses:
DrawShapeDiagramAction

@OpenApiAll public class BaseCustomizableDiagramAction extends com.nomagic.magicdraw.ui.actions.BaseDiagramAction
Action which can be customized in custom diagram descriptor UI.
See Also:
  • Field Details

    • customAdditionalDrawAction

      @CheckForNull protected com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction customAdditionalDrawAction
  • Constructor Details

    • BaseCustomizableDiagramAction

      public BaseCustomizableDiagramAction(@CheckForNull String actionID, @CheckForNull String actionName, @CheckForNull KeyStroke key)
  • Method Details

    • getIcons

      public com.nomagic.magicdraw.ui.diagrams.IconCollection getIcons()
    • setIcons

      public void setIcons(com.nomagic.magicdraw.ui.diagrams.IconCollection icons)
    • getLargeIcon

      @CheckForNull public Icon getLargeIcon()
      Description copied from class: NMAction
      Returns the large icon of the action.
      Overrides:
      getLargeIcon in class NMAction
      Returns:
      the large icon of the action.
    • getSmallIcon

      @CheckForNull public Icon getSmallIcon()
      Description copied from class: NMAction
      Returns the small icon of the action.
      Overrides:
      getSmallIcon in class NMAction
      Returns:
      the small icon of the action.
    • getDefaultIcon

      @CheckForNull protected ResizableIcon getDefaultIcon()
    • setDescription

      public void setDescription(@CheckForNull String description)
      Description copied from class: NMAction
      Sets new action description.
      Overrides:
      setDescription in class NMAction
      Parameters:
      description - action description.
    • clone

      Description copied from class: NMAction
      Clones the object. Does the deep clone.
      Overrides:
      clone in class com.nomagic.magicdraw.ui.actions.BaseDiagramAction
      Returns:
      cloned object
    • getStyle

      @CheckForNull public PropertyManager getStyle()
    • setStyle

      public void setStyle(@CheckForNull PropertyManager style)
    • setStyle

      public void setStyle(@CheckForNull com.nomagic.magicdraw.ui.diagrams.PropertyManagerProxy style)
    • createState

      @NotApi protected com.nomagic.magicdraw.ui.states.State createState()
      Creates ShapeDrawState and sets to to the canvas.
      Overrides:
      createState in class com.nomagic.magicdraw.ui.actions.BaseDiagramAction
    • getCustomAdditionalDrawAction

      @CheckForNull public com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction getCustomAdditionalDrawAction()
      Returns custom additional draw action for this action.
      Returns:
      additional draw action
    • getDefaultAdditionalDrawAction

      @CheckForNull public com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction getDefaultAdditionalDrawAction()
      Returns default additional draw action for this action
      Returns:
      default additional draw action
    • setCustomAdditionalDrawAction

      public void setCustomAdditionalDrawAction(@CheckForNull com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction customAdditionalDrawAction)
      Set custom additional draw action for this action. This draw action will be used if not null.
      Parameters:
      customAdditionalDrawAction - custom additional draw action