Routing [message #19214] |
Tue, 10 September 2002 05:06  |
Eclipse User |
|
|
|
Originally posted by: mati.ncdc.pl
Hi all,
I have spend a lot of time figuring out what for is routing in draw2d.
Currently we are developing one project using draw2d, because we failed to
launch GEF in standalone enviroment.
I already know what does BendpointConnectionRouter does and it works but i
see no point in ManhatanConnectionRouter as well as FanRouter. What is the
purpouse of this classes.
I have figured out (demo4 as an example) that routing is not necessary for
two figuires to be connected.
If someone could explain I would appreciate.
2. We have been trying GEF from tigris.org but it is Swing alike but it
works for standalone application, we wish Gef worked for standalone
purpoused.
What is more, what are the features draw2d is missing and GEF provided from
IBM.
|
|
|
|
|
Re: Routing [message #19546 is a reply to message #19456] |
Wed, 11 September 2002 09:24   |
Eclipse User |
|
|
|
Originally posted by: hudsonr.us.eye-bee-em.com
> > We are not making efforts to support standalone environment. If someone
> in
> > the community wishes to help out by making changes which do not affect
GEF
> > in Eclipse, we would probably integrate these changes.
>
> That is a pity becuase SWT has been designed so that applications can be
> launched in stand-alone enviroment. Draw2d as I can see also can be
launched
> in stand-alone application. I then do not understand why IBM does not
want
> to provide support for GEF outside eclipse platform. I know it can we very
> helpful to design tools such as UML editor, as well as is a first step to
> make a GUI designer for eclipse. But it still is eclipse oriented. Many
ppl
> want to use SWT instead of AWT or Swing these days.
>
> > > I have figured out (demo4 as an example) that routing is not necessary
> for
> > > two figuires to be connected.
> >
> > Correct, you will get a straight line between them.
>
> is it possible to use FanRouter and to have bendline? What for then
> BendpointConnectionRouter.
BendpointCR is for manual bendpoints that the user makes. FanRouter inserts
bendpoints without the user doing anything. You can also chain them
together, so that connections without user bendpoints still might have
automatic bendpoints.
>
> What I also figured out that it is possible to use several routers. using
> method next or nextrouter u can route connection through different
routers.
> I dislike a bit Logic Example because it is too much GEF oriented and we
do
> not want to use GEF because it is not standalone friendly. I would
> appreciate if there were more examples such as demo4 but unformtunately I
> failed to find any except eclipsewiki.
>
> > > If someone could explain I would appreciate.
> >
> > The purpose of routing is to bend the connection somewhere between its
> > source and target endpoints.
>
> I though that it is only purpouse of BendpointConnectionRouter
>
> > > What is more, what are the features draw2d is missing and GEF provided
> > from
> > > IBM.
> >
> > I do not understand this question. draw2d is for rendering and layout.
> GEF
> > is for interactive editing by the user, it uses draw2d.
>
> I have designed selection box that uses FocusBorder but unfortunately even
I
> set it's opaque it ain't transparent. I though maybe subclassing Shape and
> writing own implementation of RectangleFigure might help since
> RectangleFigure class uses graphics.FillRectangle.
If you put this border on RectangleFigure, you must use setFill(false).
isOpaque() means that the figure completely fills its RECTANGULAR bounds,
but setFill() just means that a SHAPE will fill its geometric region, which
isn't necessarily a rectangle.
>
> What is more I cannot select figures in figure in which I am drawing. I
used
> FigureIterator but it only itarates through all figures but I wonder how
to
> iterate through figures at given rectangle in provided figure.
>
>
> ---------------------------------
> | ----- |
> | | | |
> | ----- |
> | |
> | |
> ---------------------------------
>
> How to itarate through figures in the smaller box that would use parent as
a
> box underneath.
Are you making you own MarqueeTool? Please look at the code in GEF's
marquee tool.
>
>
> Thank you very much for help and for help that will be coming in advance
;)
>
>
>
>
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03667 seconds