Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Polygon decoration color
Polygon decoration color [message #131488] Thu, 31 May 2007 10:06 Go to next message
Eclipse UserFriend
Originally posted by: gritgop.pisem.net

I'm using a polygon decoration to add a decoration to a link between
elements. I'd like this polygon (a triangle) to be filled with the white
color but I have no idea how to do it. I have tried everything I can
think of: adding a foreground and background children with a white
color, setting the Fill attribute to true, changing Xor Fill and Xor
Outline values.
Re: Polygon decoration color [message #131649 is a reply to message #131488] Thu, 31 May 2007 19:02 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello exquisitus,

Check FilledRhomb PolygonDecoration described in org.eclipse.gmf.graphdef/classDiagram.gmfgraph

-----------------
Alex Shatalin
Re: Polygon decoration color [message #131767 is a reply to message #131649] Fri, 01 June 2007 09:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gritgop.pisem.net

I can make a custom polygon decoration. The problem is that I want that
polygon to be filled with white color. Even using the exact same code
from the classDiagram.gmfgraph I'm getting a gray color.


Alex Shatalin wrote:
> Hello exquisitus,
>
> Check FilledRhomb PolygonDecoration described in
> org.eclipse.gmf.graphdef/classDiagram.gmfgraph
>
> -----------------
> Alex Shatalin
Re: Polygon decoration color [message #131782 is a reply to message #131767] Fri, 01 June 2007 12:08 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello exquisitus,

I'be tried to:
- modify "classDiagram.gmfgraph" (used in Ecore example) by adding "Background
Color Constant Color" below Polygon Decoration Filled Rhomb
- re-generate .gmfgraph from .gmfmap
- re-generate code

Now I have rhomb filled with white color as a decoration of aggregation link
on Ecore diagram...

-----------------
Alex Shatalin
Previous Topic:OCL constraint
Next Topic:Re: validating the diagram while saving
Goto Forum:
  


Current Time: Fri Nov 21 16:39:17 GMT 2014

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

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