Package com.nomagic.magicdraw.hyperlinks
Class HyperlinksUIUtils
- java.lang.Object
-
- com.nomagic.magicdraw.hyperlinks.HyperlinksUIUtils
-
@OpenApiAll public class HyperlinksUIUtils extends java.lang.Object
Utility class for activating hyperlinks from UI.
-
-
Constructor Summary
Constructors Constructor Description HyperlinksUIUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
activateHyperlink(Element owner, Hyperlink hyperlink)
Activates given hyperlinkstatic void
activateHyperlink(Element owner, Hyperlink hyperlink, java.awt.AWTEvent event, LocationInTool location)
Activates given hyperlinkstatic boolean
activateHyperlink(Element element, java.awt.AWTEvent event, LocationInTool locationInTool)
Opens active hyperlink for given Element.
-
-
-
Method Detail
-
activateHyperlink
public static void activateHyperlink(@CheckForNull Element owner, Hyperlink hyperlink, @CheckForNull java.awt.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
public static void activateHyperlink(@CheckForNull Element owner, Hyperlink hyperlink)
Activates given hyperlink- Parameters:
owner
- hyperlink ownerhyperlink
- hyperlink in MD
-
activateHyperlink
public static boolean activateHyperlink(Element element, @CheckForNull java.awt.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
-
-