Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Custom Text
Custom Text [message #1435959] Thu, 02 October 2014 07:35 Go to next message
Marion lajowick is currently offline Marion lajowickFriend
Messages: 2
Registered: October 2014
Junior Member
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 14:55 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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 12:49 Go to previous messageGo to next message
Marion lajowick is currently offline Marion lajowickFriend
Messages: 2
Registered: October 2014
Junior Member
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 10:27 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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: Tue Mar 19 09:52:23 GMT 2024

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

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

Back to the top