Determining Whether a Hyperlink in an HTML-coded Label Text has been Clicked |
| Applies to: yFiles 2.5 |
Type: Tips & Tricks
Categories this article belongs to:
| yFiles for Java | > yFiles Viewer | > Displaying and Editing Graphs | > Realizer-Related Features |
Support for hyperlinks in HTML-encoded label text.
If a label text is specified using HTML, i.e., starting with the <html> prefix, the attached demo presents how an application can determine whether one of the hyperlinks has been clicked.
The demo uses a customized view mode to listen for clicks, performs a hit test on labels, and then determines on what HREF element within the HTML label the click actually occurred on.
| Resources: |
| Keywords: | hyperlink - hit - hit-test - HTML - label - href - view - mode - view mode - click |


