Class HyperlinksUIUtils

java.lang.Object
com.nomagic.magicdraw.hyperlinks.HyperlinksUIUtils

@OpenApiAll public class HyperlinksUIUtils extends Object
Utility class for activating hyperlinks from UI.
  • Constructor Details

    • HyperlinksUIUtils

      public HyperlinksUIUtils()
  • Method Details

    • activateHyperlink

      public static void activateHyperlink(@CheckForNull Element owner, Hyperlink hyperlink, @CheckForNull AWTEvent event, LocationInTool location)
      Activates given hyperlink
      Parameters:
      owner - hyperlink owner
      hyperlink - hyperlink
      event - input event (used to take click modifiers)
      location - hyperlink activation location in MD
    • activateHyperlink

      public static void activateHyperlink(@CheckForNull Element owner, Hyperlink hyperlink)
      Activates given hyperlink
      Parameters:
      owner - hyperlink owner
      hyperlink - hyperlink in MD
    • activateHyperlink

      public static boolean activateHyperlink(Element element, @CheckForNull AWTEvent event, LocationInTool locationInTool)
      Opens active hyperlink for given Element.
      Parameters:
      element - given element
      event - event that triggered hyperlink
      locationInTool - location where hyperlink is triggered from
      Returns:
      true if was triggered