Package com.nomagic.magicdraw.hyperlinks
Interface HyperlinkHandler
-
- All Superinterfaces:
ProtocolSupport
@OpenApiAll public interface HyperlinkHandler extends ProtocolSupport
Handle the hyperlink. The handler should be registered inHyperlinksHandlersRegistry
- See Also:
HyperlinksHandlersRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description void
activate(Element element, Hyperlink link)
Activate given hyperlink.default Hyperlink
create(java.lang.String text, java.lang.String url)
Deprecated.default Hyperlink
create(java.lang.String text, java.lang.String url, Project context)
Create hyperlink.HyperlinkEditor
getEditor()
Get hyperlink editor.javax.swing.Icon
getIcon(Hyperlink link)
Get hyperlink icon.-
Methods inherited from interface com.nomagic.magicdraw.hyperlinks.ProtocolSupport
isSupportedProtocol
-
-
-
-
Method Detail
-
getIcon
@CheckForNull javax.swing.Icon getIcon(Hyperlink link)
Get hyperlink icon.- Parameters:
link
- hyperlink- Returns:
- icon
-
create
@CheckForNull default Hyperlink create(@CheckForNull java.lang.String text, java.lang.String url, @CheckForNull Project context)
Create hyperlink.- Parameters:
text
- hyperlink texturl
- hyperlink URLcontext
- project- Returns:
- created hyperlink
-
create
@CheckForNull @Deprecated default Hyperlink create(@CheckForNull java.lang.String text, java.lang.String url)
Deprecated.Create hyperlink.- Parameters:
text
- hyperlink texturl
- hyperlink URL- Returns:
- created hyperlink
-
getEditor
@CheckForNull HyperlinkEditor getEditor()
Get hyperlink editor.- Returns:
- hyperlink editor
-
-