Skip to main content



      Home
Home » Modeling » Graphiti » Custom Text
Custom Text [message #1435959] Thu, 02 October 2014 03:35 Go to next message
Eclipse UserFriend
Is there a way to make the text inside tool tip bold and change the color of the text?
Re: Custom Text [message #1438827 is a reply to message #1435959] Mon, 06 October 2014 10:55 Go to previous messageGo to next message
Eclipse UserFriend
Marion,

yes, you can return an AbstractText instead of a plain String in getToolTip
in your tool behavior provider. In the AbstractText you can fomat the text
using text style regions, they support fonts, sizes, bold, ...

Have a look into the JavaDoc of
IToolBehaviorProvider.getToolTip(GraphicsAlgorithm graphicsAlgorithm)

Michael
Re: Custom Text [message #1439725 is a reply to message #1438827] Tue, 07 October 2014 08:49 Go to previous messageGo to next message
Eclipse UserFriend
Michael,
I tried returning AbstractText after setting the font,size and setting the text bold.Still the text shows without any change.Doesn't work.
Re: Custom Text [message #1441153 is a reply to message #1439725] Thu, 09 October 2014 06:27 Go to previous message
Eclipse UserFriend
Marion,

unfortunately, the setting of font on the AbstractText itself will not have
any effect. You need to define TextStyleRegions inside your AbstractText.

Michael
Previous Topic:Modify behaviour for GFWorkspaceCommandStackImpl.redo() ?
Next Topic:Graphiti with tycho
Goto Forum:
  


Current Time: Sat Jul 05 03:51:56 EDT 2025

Powered by FUDForum. Page generated in 0.03870 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top