Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » What are Size Point and Location Point for?
What are Size Point and Location Point for? [message #221937] Thu, 19 March 2009 14:15 Go to next message
Eclipse UserFriend
Originally posted by: rholland.igw.tfh-wildau.de

I wondered what these two children in gmfgraph are good for. Thought they
are hints for scalable figures like Scalable Polygon in order to for example
from which point to scale from. Tried to add these children as part of
Scalable Polygon but it didn't have any effect.
Re: What are Size Point and Location Point for? [message #221958 is a reply to message #221937] Thu, 19 March 2009 14:27 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Ralph,

These methods are just representing corresponding methods from GEF. In other
words, if you set size for a figure and then this figure will be placed into
another one having layout manager i suppose layout manager will relayout
this figure and set size to another value... You can use preferred/maximum/minimum
size just like with GEF.

> I wondered what these two children in gmfgraph are good for. Thought
If you happen to put figure into layout manager using "size" instead of "preferred
size" then these attributes will be used..

-----------------
Alex Shatalin
Re: What are Size Point and Location Point for? [message #221972 is a reply to message #221958] Thu, 19 March 2009 14:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rholland.igw.tfh-wildau.de

Thanks for the answer.
So it's something else than I suggested.
So is there any possibilty to influence the scaling so that the Scalable
Polygon is scaled from the center instead from Point (0,0)?

"Alex Shatalin" <vano@borland.com> schrieb im Newsbeitrag
news:3c3172e62b59d8cb76be643c8140@news.eclipse.org...
> Hello Ralph,
>
> These methods are just representing corresponding methods from GEF. In
> other words, if you set size for a figure and then this figure will be
> placed into another one having layout manager i suppose layout manager
> will relayout this figure and set size to another value... You can use
> preferred/maximum/minimum size just like with GEF.
>
>> I wondered what these two children in gmfgraph are good for. Thought
> If you happen to put figure into layout manager using "size" instead of
> "preferred size" then these attributes will be used..
>
> -----------------
> Alex Shatalin
>
>
Re: What are Size Point and Location Point for? [message #221984 is a reply to message #221972] Thu, 19 March 2009 14:52 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Ralph,

I doubt it is. Why do you need it?
Do you need to locate this polygon somehow specifically? Can't you use layouts
for it?

-----------------
Alex Shatalin
Re: What are Size Point and Location Point for? [message #222055 is a reply to message #221984] Thu, 19 March 2009 16:44 Go to previous message
Eclipse UserFriend
Originally posted by: rholland.igw.tfh-wildau.de

Was my mistake. The figures are scaled correctly. The problem is with
calculating the width of a figure. If i have a figure from point 0 to 10 and
a point at 5 indicating the center then the default size facet should have a
width of 11 (11 pixel from 0 to 10). So if i set the width to 10 the middle
point is not in the middle because of the scaling because it has to round
the point to 4 or 5 but the real middle would be 4.5 . So I first thought of
a scaling problem.

"Alex Shatalin" <vano@borland.com> schrieb im Newsbeitrag
news:3c3172e62b5a68cb76c1dcfb9b5c@news.eclipse.org...
> Hello Ralph,
>
> I doubt it is. Why do you need it? Do you need to locate this polygon
> somehow specifically? Can't you use layouts for it?
>
> -----------------
> Alex Shatalin
>
>
Previous Topic:[Announce] GMF 2.2.0 I200903190922 is available
Next Topic:How to generate semanticHints
Goto Forum:
  


Current Time: Fri Apr 19 19:38:30 GMT 2024

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

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

Back to the top