How to create a multiline tooltip for an activity?
You can return HTML text from thegetToolTipText()method ofIlvActivityRendererorIlvConstraintGraphicto cause tooltips to be rendered across multiple lines. HTML text must be bracketed with an<html>tag at the beginning and an</html>tag at the end. HTML tooltips will work on all currently supported versions of Swing. However, you can verify this by calling theIlvSwingUtil.isHTMLToolTipsSupported()method. You can refer to this chapter of the Swing tutorial for more details on using HTML text within Swing components:.
If you are not using CSS styling, you will need to override thegetToolTipText()method in your activity renderer subclass to return HTML formatted text. You can use one of the twocreateMultiLineToolTipTextmethod of the classilog.views.util.swing.IlvSwingUtilto generate an HTML text string that can be rendered as multiline tool tip.
If you are using CSS styling, then you can directly construct an HTML multiline tooltip string within the stylesheet. Here is an example taken from the Gantt CSS Sample: