Home » Eclipse Projects » GEF » Is GEF the BEST choice?
Is GEF the BEST choice? [message #119987] |
Tue, 02 March 2004 08:36  |
Eclipse User |
|
|
|
Originally posted by: jake.jakethompson.com
I am asking for some help in determining if GEF is my best choice for a
particular project. I will try my best to describe what I am trying to do.
I have a grid that could be 1000x1000, or larger or smaller. In each box of
the grid, there could be a single icon, however there does not always need
to be an icon in a particular x,y location. There could be from 1-1000
different types of icons. Each of these icons could be displayed in many
x,y locations but they would not have individual properties a icon holds all
the properties and is displayed multiple times. The user interaction is as
simple as choose an icon and click an xy location and either the icon is
drawn there or an icon is removed from there.
Example (_ is an empty box)
XXXXXXXXXXXXXX
X____O______O____X
X____OOOOOO____X
X____O______O____X
XXXXXXXXXXXXXX
Obviously this could get much larger and many more different icon types. I
cannot use straight text laied out in a grid, the icons will be faily
specific and will ocaaionally be overlaid with extra graphics.
Well I hope I described this the best I could and I look forward to any
comments/questions in return.
-Thanks,
Jake T.
|
|
|
Re: Is GEF the BEST choice? [message #119999 is a reply to message #119987] |
Tue, 02 March 2004 08:39   |
Eclipse User |
|
|
|
Originally posted by: jake.jakethompson.com
Just to clarify, perhaps BEST is too strong of a word, more like WOULD IT
WORK and WOULD IT WORK WELL
-Jake
"Jake Thompson" <jake@jakethompson.com> wrote in message
news:c222dd$up4$1@eclipse.org...
> I am asking for some help in determining if GEF is my best choice for a
> particular project. I will try my best to describe what I am trying to
do.
>
> I have a grid that could be 1000x1000, or larger or smaller. In each box
of
> the grid, there could be a single icon, however there does not always need
> to be an icon in a particular x,y location. There could be from 1-1000
> different types of icons. Each of these icons could be displayed in many
> x,y locations but they would not have individual properties a icon holds
all
> the properties and is displayed multiple times. The user interaction is
as
> simple as choose an icon and click an xy location and either the icon is
> drawn there or an icon is removed from there.
> Example (_ is an empty box)
>
> XXXXXXXXXXXXXX
> X____O______O____X
> X____OOOOOO____X
> X____O______O____X
> XXXXXXXXXXXXXX
>
> Obviously this could get much larger and many more different icon types.
I
> cannot use straight text laied out in a grid, the icons will be faily
> specific and will ocaaionally be overlaid with extra graphics.
>
> Well I hope I described this the best I could and I look forward to any
> comments/questions in return.
>
> -Thanks,
> Jake T.
>
>
|
|
|
Re: Is GEF the BEST choice? [message #120012 is a reply to message #119999] |
Tue, 02 March 2004 09:51   |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
For such a large game of minesweeper, you could get by with using just
Draw2d, and writing a TableFigure which paints the icons based on a
Tablemodel. Similarly, you could process the mouse clicks and determine the
cell location. I'm assuming there is nothing else to your application but
what you have described. But, with 1 million icons, I doubt you'd want
anything larger than an INT to represent each??
"Jake Thompson" <jake@jakethompson.com> wrote in message
news:c222ke$v2d$1@eclipse.org...
> Just to clarify, perhaps BEST is too strong of a word, more like WOULD IT
> WORK and WOULD IT WORK WELL
>
> -Jake
>
> "Jake Thompson" <jake@jakethompson.com> wrote in message
> news:c222dd$up4$1@eclipse.org...
> > I am asking for some help in determining if GEF is my best choice for a
> > particular project. I will try my best to describe what I am trying to
> do.
> >
> > I have a grid that could be 1000x1000, or larger or smaller. In each
box
> of
> > the grid, there could be a single icon, however there does not always
need
> > to be an icon in a particular x,y location. There could be from 1-1000
> > different types of icons. Each of these icons could be displayed in
many
> > x,y locations but they would not have individual properties a icon holds
> all
> > the properties and is displayed multiple times. The user interaction is
> as
> > simple as choose an icon and click an xy location and either the icon is
> > drawn there or an icon is removed from there.
> > Example (_ is an empty box)
> >
> > XXXXXXXXXXXXXX
> > X____O______O____X
> > X____OOOOOO____X
> > X____O______O____X
> > XXXXXXXXXXXXXX
> >
> > Obviously this could get much larger and many more different icon types.
> I
> > cannot use straight text laied out in a grid, the icons will be faily
> > specific and will ocaaionally be overlaid with extra graphics.
> >
> > Well I hope I described this the best I could and I look forward to any
> > comments/questions in return.
> >
> > -Thanks,
> > Jake T.
> >
> >
>
>
|
|
|
Re: Is GEF the BEST choice? [message #120023 is a reply to message #120012] |
Tue, 02 March 2004 09:58   |
Eclipse User |
|
|
|
Originally posted by: jake.jakethompson.com
Yeah, unfortunately it is a bit more complicated that minesweeper ;-).
There are multiple views for each icon that could be cycled through, and
each icon has a specific color that can be changed. However, to your
point, am I better off just using the base eclipse editor with a Draw2D
graphics, or do I gain with the GEF, because of the individual Part
control I can get?
Thanks,
Jake T.
Randy Hudson wrote:
> For such a large game of minesweeper, you could get by with using just
> Draw2d, and writing a TableFigure which paints the icons based on a
> Tablemodel. Similarly, you could process the mouse clicks and determine the
> cell location. I'm assuming there is nothing else to your application but
> what you have described. But, with 1 million icons, I doubt you'd want
> anything larger than an INT to represent each??
>
> "Jake Thompson" <jake@jakethompson.com> wrote in message
> news:c222ke$v2d$1@eclipse.org...
>
>>Just to clarify, perhaps BEST is too strong of a word, more like WOULD IT
>>WORK and WOULD IT WORK WELL
>>
>>-Jake
>>
>>"Jake Thompson" <jake@jakethompson.com> wrote in message
>>news:c222dd$up4$1@eclipse.org...
>>
>>>I am asking for some help in determining if GEF is my best choice for a
>>>particular project. I will try my best to describe what I am trying to
>>
>>do.
>>
>>>I have a grid that could be 1000x1000, or larger or smaller. In each
>
> box
>
>>of
>>
>>>the grid, there could be a single icon, however there does not always
>
> need
>
>>>to be an icon in a particular x,y location. There could be from 1-1000
>>>different types of icons. Each of these icons could be displayed in
>
> many
>
>>>x,y locations but they would not have individual properties a icon holds
>>
>>all
>>
>>>the properties and is displayed multiple times. The user interaction is
>>
>>as
>>
>>>simple as choose an icon and click an xy location and either the icon is
>>>drawn there or an icon is removed from there.
>>>Example (_ is an empty box)
>>>
>>>XXXXXXXXXXXXXX
>>>X____O______O____X
>>>X____OOOOOO____X
>>>X____O______O____X
>>>XXXXXXXXXXXXXX
>>>
>>>Obviously this could get much larger and many more different icon types.
>>
>>I
>>
>>>cannot use straight text laied out in a grid, the icons will be faily
>>>specific and will ocaaionally be overlaid with extra graphics.
>>>
>>>Well I hope I described this the best I could and I look forward to any
>>>comments/questions in return.
>>>
>>>-Thanks,
>>>Jake T.
>>>
>>>
>>
>>
>
>
|
|
| |
Re: Is GEF the BEST choice? [message #120111 is a reply to message #120023] |
Tue, 02 March 2004 14:53   |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
I certainly hope that there are benefits to using GEF, but for such a large
data set I think you should stick to draw2d. But you could always
investigate both.
"Jake Thompson" <jake@jakethompson.com> wrote in message
news:c2276v$5r4$1@eclipse.org...
> Yeah, unfortunately it is a bit more complicated that minesweeper ;-).
> There are multiple views for each icon that could be cycled through, and
> each icon has a specific color that can be changed. However, to your
> point, am I better off just using the base eclipse editor with a Draw2D
> graphics, or do I gain with the GEF, because of the individual Part
> control I can get?
>
> Thanks,
> Jake T.
>
> Randy Hudson wrote:
> > For such a large game of minesweeper, you could get by with using just
> > Draw2d, and writing a TableFigure which paints the icons based on a
> > Tablemodel. Similarly, you could process the mouse clicks and determine
the
> > cell location. I'm assuming there is nothing else to your application
but
> > what you have described. But, with 1 million icons, I doubt you'd want
> > anything larger than an INT to represent each??
> >
> > "Jake Thompson" <jake@jakethompson.com> wrote in message
> > news:c222ke$v2d$1@eclipse.org...
> >
> >>Just to clarify, perhaps BEST is too strong of a word, more like WOULD
IT
> >>WORK and WOULD IT WORK WELL
> >>
> >>-Jake
> >>
> >>"Jake Thompson" <jake@jakethompson.com> wrote in message
> >>news:c222dd$up4$1@eclipse.org...
> >>
> >>>I am asking for some help in determining if GEF is my best choice for a
> >>>particular project. I will try my best to describe what I am trying to
> >>
> >>do.
> >>
> >>>I have a grid that could be 1000x1000, or larger or smaller. In each
> >
> > box
> >
> >>of
> >>
> >>>the grid, there could be a single icon, however there does not always
> >
> > need
> >
> >>>to be an icon in a particular x,y location. There could be from 1-1000
> >>>different types of icons. Each of these icons could be displayed in
> >
> > many
> >
> >>>x,y locations but they would not have individual properties a icon
holds
> >>
> >>all
> >>
> >>>the properties and is displayed multiple times. The user interaction
is
> >>
> >>as
> >>
> >>>simple as choose an icon and click an xy location and either the icon
is
> >>>drawn there or an icon is removed from there.
> >>>Example (_ is an empty box)
> >>>
> >>>XXXXXXXXXXXXXX
> >>>X____O______O____X
> >>>X____OOOOOO____X
> >>>X____O______O____X
> >>>XXXXXXXXXXXXXX
> >>>
> >>>Obviously this could get much larger and many more different icon
types.
> >>
> >>I
> >>
> >>>cannot use straight text laied out in a grid, the icons will be faily
> >>>specific and will ocaaionally be overlaid with extra graphics.
> >>>
> >>>Well I hope I described this the best I could and I look forward to any
> >>>comments/questions in return.
> >>>
> >>>-Thanks,
> >>>Jake T.
> >>>
> >>>
> >>
> >>
> >
> >
|
|
|
Re: Is GEF the BEST choice? [message #120125 is a reply to message #120037] |
Tue, 02 March 2004 14:56   |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
It seems like there are higher-level constructs in this picture which could
map to editparts in GEF. The "unit" could be a polyline, or a polygon which
essentially defines a mask, and then there is data about the cells in the
mask. My main point is that you wouldn't want to model 100,000+ cells
individually using editparts.
"Jake Thompson" <jake@jakethompson.com> wrote in message
news:c227cd$5r4$2@eclipse.org...
> I am attaching a picture that gives the best example for what I am
> trying to do.
>
>
>
> Jake Thompson wrote:
>
> > I am asking for some help in determining if GEF is my best choice for a
> > particular project. I will try my best to describe what I am trying to
do.
> >
> > I have a grid that could be 1000x1000, or larger or smaller. In each
box of
> > the grid, there could be a single icon, however there does not always
need
> > to be an icon in a particular x,y location. There could be from 1-1000
> > different types of icons. Each of these icons could be displayed in
many
> > x,y locations but they would not have individual properties a icon holds
all
> > the properties and is displayed multiple times. The user interaction is
as
> > simple as choose an icon and click an xy location and either the icon is
> > drawn there or an icon is removed from there.
> > Example (_ is an empty box)
> >
> > XXXXXXXXXXXXXX
> > X____O______O____X
> > X____OOOOOO____X
> > X____O______O____X
> > XXXXXXXXXXXXXX
> >
> > Obviously this could get much larger and many more different icon types.
I
> > cannot use straight text laied out in a grid, the icons will be faily
> > specific and will ocaaionally be overlaid with extra graphics.
> >
> > Well I hope I described this the best I could and I look forward to any
> > comments/questions in return.
> >
> > -Thanks,
> > Jake T.
> >
> >
>
>
------------------------------------------------------------ ----------------
----
|
|
|
Re: Is GEF the BEST choice? [message #120149 is a reply to message #120125] |
Tue, 02 March 2004 15:52   |
Eclipse User |
|
|
|
Originally posted by: jake.jakethompson.com
Right, so the grid is 1000x1000, although that could just be a snap grid
of some sort, I could model each item as an Edit part, with it holding
information about its color, its icon and all xy pairs that it is
displayed at. In this case I would be modeling I would hope < 200 items
at any given time.
This sound possible?
Thanks,
Jake
Randy Hudson wrote:
> It seems like there are higher-level constructs in this picture which could
> map to editparts in GEF. The "unit" could be a polyline, or a polygon which
> essentially defines a mask, and then there is data about the cells in the
> mask. My main point is that you wouldn't want to model 100,000+ cells
> individually using editparts.
>
> "Jake Thompson" <jake@jakethompson.com> wrote in message
> news:c227cd$5r4$2@eclipse.org...
>
>>I am attaching a picture that gives the best example for what I am
>>trying to do.
>>
>>
>>
>>Jake Thompson wrote:
>>
>>
>>>I am asking for some help in determining if GEF is my best choice for a
>>>particular project. I will try my best to describe what I am trying to
>
> do.
>
>>>I have a grid that could be 1000x1000, or larger or smaller. In each
>
> box of
>
>>>the grid, there could be a single icon, however there does not always
>
> need
>
>>>to be an icon in a particular x,y location. There could be from 1-1000
>>>different types of icons. Each of these icons could be displayed in
>
> many
>
>>>x,y locations but they would not have individual properties a icon holds
>
> all
>
>>>the properties and is displayed multiple times. The user interaction is
>
> as
>
>>>simple as choose an icon and click an xy location and either the icon is
>>>drawn there or an icon is removed from there.
>>>Example (_ is an empty box)
>>>
>>>XXXXXXXXXXXXXX
>>>X____O______O____X
>>>X____OOOOOO____X
>>>X____O______O____X
>>>XXXXXXXXXXXXXX
>>>
>>>Obviously this could get much larger and many more different icon types.
>
> I
>
>>>cannot use straight text laied out in a grid, the icons will be faily
>>>specific and will ocaaionally be overlaid with extra graphics.
>>>
>>>Well I hope I described this the best I could and I look forward to any
>>>comments/questions in return.
>>>
>>>-Thanks,
>>>Jake T.
>>>
>>>
>>
>>
>
>
> ------------------------------------------------------------ ----------------
> ----
>
>
>
>
>
|
|
|
Re: Is GEF the BEST choice? [message #120163 is a reply to message #120149] |
Wed, 03 March 2004 00:44  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
"Jake Thompson" <jake@jakethompson.com> wrote in message
news:c22rvd$2gd$1@eclipse.org...
> Right, so the grid is 1000x1000, although that could just be a snap grid
> of some sort, I could model each item as an Edit part, with it holding
> information about its color, its icon and all xy pairs that it is
> displayed at. In this case I would be modeling I would hope < 200 items
> at any given time.
>
> This sound possible?
Yup.
|
|
|
Goto Forum:
Current Time: Fri May 30 02:19:01 EDT 2025
Powered by FUDForum. Page generated in 0.07096 seconds
|