Package com.nomagic.magicdraw.hyperlinks
Class HyperlinksUIUtils
java.lang.Object
com.nomagic.magicdraw.hyperlinks.HyperlinksUIUtils
Utility class for activating hyperlinks from UI.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
activateHyperlink
(Element owner, Hyperlink hyperlink) Activates given hyperlinkstatic void
activateHyperlink
(Element owner, Hyperlink hyperlink, AWTEvent event, LocationInTool location) Activates given hyperlinkstatic boolean
activateHyperlink
(Element element, AWTEvent event, LocationInTool locationInTool) Opens active hyperlink for given Element.
-
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 ownerhyperlink
- hyperlinkevent
- input event (used to take click modifiers)location
- hyperlink activation location in MD
-
activateHyperlink
Activates given hyperlink- Parameters:
owner
- hyperlink ownerhyperlink
- hyperlink in MD
-
activateHyperlink
public static boolean activateHyperlink(Element element, @CheckForNull AWTEvent event, LocationInTool locationInTool) Opens active hyperlink for given Element.- Parameters:
element
- given elementevent
- event that triggered hyperlinklocationInTool
- location where hyperlink is triggered from- Returns:
- true if was triggered
-