Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » IFigure - no getLocation() ??
IFigure - no getLocation() ?? [message #107331] Fri, 28 November 2003 08:17 Go to next message
Chris Heald is currently offline Chris HealdFriend
Messages: 40
Registered: July 2009
Member
Why does IFigure not have a getLocation() method?
Not a big problem and I'm sure there's probably a good reason for it but
after saerching the newsgroups I couldn't find anything so I thought I'd
ask...

Thanks
Chris Heald
Re: IFigure - no getLocation() ?? [message #107343 is a reply to message #107331] Fri, 28 November 2003 08:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.gmx.net

Hi Chris,

"Chris Heald" <chris.heald@m.eads.net> wrote in message
news:bq70af$803$1@eclipse.org...
> Why does IFigure not have a getLocation() method?

I don?t know...

> Not a big problem and I'm sure there's probably a good reason for it but
> after saerching the newsgroups I couldn't find anything so I thought I'd
> ask...
I?m also sure, there?s a reason.
Are you looking for an answer to your question
or a possibility to get the location? Then try figure.getBounds.getLocation!


>
> Thanks
> Chris Heald

Regards, Ingo
Re: IFigure - no getLocation() ?? [message #107413 is a reply to message #107331] Fri, 28 November 2003 13:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.intershop.de

Chris Heald wrote:
> Why does IFigure not have a getLocation() method?

Because they have bounds.
@see IFigure#getBounds

> Not a big problem and I'm sure there's probably a good reason for it
> but after saerching the newsgroups I couldn't find anything so I
> thought I'd ask...

Well, normally figures are placed (@see IFigure#setBounds) by their parents
with the help of a layout manager.

Cu, Gunnar
Re: IFigure - no getLocation() ?? [message #107418 is a reply to message #107413] Fri, 28 November 2003 13:54 Go to previous message
Chris Heald is currently offline Chris HealdFriend
Messages: 40
Registered: July 2009
Member
Yes, but often you need to find the location of a figure and the Abstract
GraphicalEditParts return IFigure from getFigure(), so I'm currently
casting to Figure to use getLocation(). I could use
getBounds().getLocation() but anyway...
Just seems strange that IFigure would have a setLocation() but no
getLocation() when Figure does...

Thanks
Chris


Gunnar Wagenknecht wrote:

> Chris Heald wrote:
> > Why does IFigure not have a getLocation() method?

> Because they have bounds.
> @see IFigure#getBounds

> > Not a big problem and I'm sure there's probably a good reason for it
> > but after saerching the newsgroups I couldn't find anything so I
> > thought I'd ask...

> Well, normally figures are placed (@see IFigure#setBounds) by their parents
> with the help of a layout manager.

> Cu, Gunnar
Previous Topic:Mismatch between Graphics.fillOval() and Graphics.drawOval()
Next Topic:Ordering Figures in Draw2D (Newbie question...)
Goto Forum:
  


Current Time: Fri Nov 08 21:56:00 GMT 2024

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

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

Back to the top