Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » custom image
custom image [message #26245] Tue, 22 August 2006 15:15 Go to next message
Eclipse UserFriend
Originally posted by: leonardo.coelho.siliconstrategy.com.br

Hi, friends,

I´m facing a little problem with custom image. I´d like to use a png
image to represent a node.

I´m trying to associate these by adding a Custom Figure to GMF Graph and
using it as a Node representation.

I created a subfolder of edit/icons and referenced this to Custom
Figure´s Bundle Name (exactly as: /icons/venati/icon_start.png )

What should i do to make it works fine?

Regards!

--

=============================/============================== ====
Leonardo Coelho

Celular: +55 21 9386-7562
Office: +55 21 2511-4531

Silicon Strategy - An Intelligent Business Consultant
Corporative e-mail: silicons@siliconstrategy.com.br
Personal e-mail: leonardo.coelho@siliconstrategy.com.br
www.siliconstrategy.com.br
=============================/============================== =====
Re: custom image [message #26557 is a reply to message #26245] Wed, 23 August 2006 03:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

Hello!

Check TaiPan sample - it uses svg image for empty box node.

Leonardo Coelho wrote:
> Hi, friends,
>
> I´m facing a little problem with custom image. I´d like to use a png
> image to represent a node.
>
> I´m trying to associate these by adding a Custom Figure to GMF Graph and
> using it as a Node representation.
>
> I created a subfolder of edit/icons and referenced this to Custom
> Figure´s Bundle Name (exactly as: /icons/venati/icon_start.png )
>
> What should i do to make it works fine?
>
> Regards!
>
Re: custom image [message #27812 is a reply to message #26557] Wed, 23 August 2006 11:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: leonardo.coelho.siliconstrategy.com.br

Great, Dmitry!

It is a little bit cumbersome, no?

Just a tip to NUb like me: in the TaiPan example, search for the class
EmptyBoxEditPart and its method called createNodeShape. It´s required to
change generated code.

It would be nice if it was possible to do by the interface.

Thx a lot!


Leo


Dmitry Stadnik escreveu:
> Hello!
>
> Check TaiPan sample - it uses svg image for empty box node.
>
> Leonardo Coelho wrote:
>> Hi, friends,
>>
>> I´m facing a little problem with custom image. I´d like to use a png
>> image to represent a node.
>>
>> I´m trying to associate these by adding a Custom Figure to GMF Graph
>> and using it as a Node representation.
>>
>> I created a subfolder of edit/icons and referenced this to Custom
>> Figure´s Bundle Name (exactly as: /icons/venati/icon_start.png )
>>
>> What should i do to make it works fine?
>>
>> Regards!
>>

--

=============================/============================== ====
Leonardo Coelho
=============================/============================== =====
Re: custom image [message #28282 is a reply to message #27812] Thu, 24 August 2006 05:25 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

Hello!

It should be possible to do in gmfgraph
https://bugs.eclipse.org/bugs/show_bug.cgi?id=131910

Leonardo Coelho wrote:
> Great, Dmitry!
>
> It is a little bit cumbersome, no?
>
> Just a tip to NUb like me: in the TaiPan example, search for the class
> EmptyBoxEditPart and its method called createNodeShape. It´s required to
> change generated code.
>
> It would be nice if it was possible to do by the interface.
>
> Thx a lot!
>
>
> Leo
>
>
> Dmitry Stadnik escreveu:
>> Hello!
>>
>> Check TaiPan sample - it uses svg image for empty box node.
>>
>> Leonardo Coelho wrote:
>>> Hi, friends,
>>>
>>> I´m facing a little problem with custom image. I´d like to use a png
>>> image to represent a node.
>>>
>>> I´m trying to associate these by adding a Custom Figure to GMF Graph
>>> and using it as a Node representation.
>>>
>>> I created a subfolder of edit/icons and referenced this to Custom
>>> Figure´s Bundle Name (exactly as: /icons/venati/icon_start.png )
>>>
>>> What should i do to make it works fine?
>>>
>>> Regards!
>>>
>
Previous Topic:Transaction problem with SortFilterPage
Next Topic:Problem in the taipan example,"diagramLabel not been set"
Goto Forum:
  


Current Time: Thu May 01 23:41:52 EDT 2025

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

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

Back to the top