Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Creating a time scale
Creating a time scale [message #222802] Wed, 13 September 2006 09:54 Go to next message
Eclipse UserFriend
Originally posted by: kristine.gmail.com

Hey

I am using GEF to create a GANTT chart sort of display. It displays n
rectangular figures placed vertically and each rectangle further contains
thin slabs placed inside that rectangle at some distance from each other.

I want to show a time scale in this display. I am not having any good idea
of how to create a time line and how to show the intervals between the
child rectangular slabs ?

Please somebody who can give me information on creating such a time line
in GEF, please suggest.

Even a small idea is welcome.

Thanks & Regards,
Kristine
Re: Creating a time scale [message #222827 is a reply to message #222802] Wed, 13 September 2006 14:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

You can put the chart into its own edit part who's figure draws the axis
around the chart.

Hope this helps.

vlad

On Wed, 13 Sep 2006 09:54:13 +0000, Kristine wrote:

> Hey
>
> I am using GEF to create a GANTT chart sort of display. It displays n
> rectangular figures placed vertically and each rectangle further contains
> thin slabs placed inside that rectangle at some distance from each other.
>
> I want to show a time scale in this display. I am not having any good idea
> of how to create a time line and how to show the intervals between the
> child rectangular slabs ?
>
> Please somebody who can give me information on creating such a time line
> in GEF, please suggest.
>
> Even a small idea is welcome.
>
> Thanks & Regards,
> Kristine
Re: Creating a time scale [message #222860 is a reply to message #222827] Thu, 14 September 2006 07:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kristine.gmail.com

Hi

I am trying to do with the help of RulerFigure. But the problem is the
Figure seems to be not visible. Any ideas ?

Thanks !
Re: Creating a time scale [message #222943 is a reply to message #222860] Fri, 15 September 2006 16:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

Maybe you need a layout manager in the parent figure or override
getPreferredSize().

I'm fighting a similar problem right now without any
resolution yet.

On Thu, 14 Sep 2006
07:11:42 +0000, Kristine wrote:

> Hi
>
> I am trying to do with the help of RulerFigure. But the problem is the
> Figure seems to be not visible. Any ideas ?
>
> Thanks !
Re: Creating a time scale [message #222958 is a reply to message #222943] Fri, 15 September 2006 18:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

What solves my problem right now is to call setSize() in the figure that
wasn't showing up before.


On Fri, 15 Sep 2006 12:54:00 -0400, Vlad Ciubotariu wrote:

> Maybe you need a layout manager in the parent figure or override
> getPreferredSize().
>
> I'm fighting a similar problem right now without any
> resolution yet.
>
> On Thu, 14 Sep 2006
> 07:11:42 +0000, Kristine wrote:
>
>> Hi
>>
>> I am trying to do with the help of RulerFigure. But the problem is the
>> Figure seems to be not visible. Any ideas ?
>>
>> Thanks !
Re: Creating a time scale [message #222966 is a reply to message #222958] Fri, 15 September 2006 21:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

I've finally figured out my problem. Anyways, assuming you want layout
your ruler using an XYLayout then subclass the ruler figure and override
addNotify() to also set the bounds the ruler, i.e. size and location.

By default, figures start with size 0 and location (0,0). These values are
meant to be updated by the layout manager of the parent figure.


vlad

On Fri, 15 Sep 2006 14:40:24 -0400, Vlad Ciubotariu wrote:

> What solves my problem right now is to call setSize() in the figure that
> wasn't showing up before.
>
>
> On Fri, 15 Sep 2006 12:54:00 -0400, Vlad Ciubotariu wrote:
>
>> Maybe you need a layout manager in the parent figure or override
>> getPreferredSize().
>>
>> I'm fighting a similar problem right now without any
>> resolution yet.
>>
>> On Thu, 14 Sep 2006
>> 07:11:42 +0000, Kristine wrote:
>>
>>> Hi
>>>
>>> I am trying to do with the help of RulerFigure. But the problem is the
>>> Figure seems to be not visible. Any ideas ?
>>>
>>> Thanks !
Re: Creating a time scale [message #223007 is a reply to message #222966] Mon, 18 September 2006 06:16 Go to previous message
Eclipse UserFriend
Originally posted by: kristine.gmail.com

Hey Vlad

Thanks a lot ! I also got my problem solved following the same thing you
suggested.
Please let me know if you come across some more ideas for making Timescale
better.

Thanks & Regards,
Kristine
Previous Topic:Windows 2000 and GEF
Next Topic:Printing the title in header or footer of the page
Goto Forum:
  


Current Time: Fri Dec 19 22:58:09 GMT 2014

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

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