Skip to main content



      Home
Home » Eclipse Projects » GEF » how to draw a bendpoint connection?
how to draw a bendpoint connection? [message #16751] Mon, 12 August 2002 07:21 Go to next message
Eclipse UserFriend
Originally posted by: bkandan.selectica.com

hi all,
i am creating an xml editor using gef...most of my
work is completed...but i dont knw how to use the
RelativeBendPoint and ConnectionRouter class...

is there any site explaining how to use these classes?

thanks in advance...

Balaji
Re: how to draw a bendpoint connection? [message #16754 is a reply to message #16751] Mon, 12 August 2002 09:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.spam.com

You probably need to use the BendpointRouter as the Connection Layer's
router.
You can use RelativeBendpoint or AbsoluteBendpoint. The difference is that
if you move the source and target, Absolute bendpoints do not move together.

Logic example shows how to do this. See WireEditPart.

"netbeans" <bkandan@selectica.com> wrote in message
news:aj85cp$gc1$1@rogue.oti.com...
> hi all,
> i am creating an xml editor using gef...most of my
> work is completed...but i dont knw how to use the
> RelativeBendPoint and ConnectionRouter class...
>
> is there any site explaining how to use these classes?
>
> thanks in advance...
>
> Balaji
>
>
>
Re: how to draw a bendpoint connection? [message #16769 is a reply to message #16754] Tue, 13 August 2002 04:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bkandan.selectica.com

hi,
thanks for the suggestion....but i am still not able
to find where i am goin wrong...

PolylineConnection connector = new PolylineConnection();

connector.setSourceAnchor(new ChopboxAnchor(new RectangleFigure()));

connector.setTargetAnchor(new ChopboxAnchor(new RectangleFigure()));

connector.setTargetDecoration(new PolygonDecoration());

RelativeBendpoint rbp = new RelativeBendpoint(connector);

rbp.setRelativeDimensions( 150, 155);


ArrayList list = new ArrayList();

list.add(rbp);

connector.setRoutingConstraint(list);



This is my code...can u pls tell me where i am goin wrong...



thanks in advance...

Balaji



"Randy Hudson" <hudsonr@spam.com> wrote in message
news:aj8esd$lk0$1@rogue.oti.com...
> You probably need to use the BendpointRouter as the Connection Layer's
> router.
> You can use RelativeBendpoint or AbsoluteBendpoint. The difference is
that
> if you move the source and target, Absolute bendpoints do not move
together.
>
> Logic example shows how to do this. See WireEditPart.
>
> "netbeans" <bkandan@selectica.com> wrote in message
> news:aj85cp$gc1$1@rogue.oti.com...
> > hi all,
> > i am creating an xml editor using gef...most of my
> > work is completed...but i dont knw how to use the
> > RelativeBendPoint and ConnectionRouter class...
> >
> > is there any site explaining how to use these classes?
> >
> > thanks in advance...
> >
> > Balaji
> >
> >
> >
>
>
Re: how to draw a bendpoint connection? [message #16782 is a reply to message #16769] Tue, 13 August 2002 14:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.spam.com

"netbeans" <bkandan@selectica.com> wrote in message
news:ajah4q$l4t$1@rogue.oti.com...
> hi,
> thanks for the suggestion....but i am still not able
> to find where i am goin wrong...
>
> PolylineConnection connector = new PolylineConnection();

connector.setConnectionRouter(new BendpointRouter());

>
> connector.setSourceAnchor(new ChopboxAnchor(new RectangleFigure()));
>
> connector.setTargetAnchor(new ChopboxAnchor(new RectangleFigure()));
>
> connector.setTargetDecoration(new PolygonDecoration());
>
> RelativeBendpoint rbp = new RelativeBendpoint(connector);
>
> rbp.setRelativeDimensions( 150, 155);
>
>
> ArrayList list = new ArrayList();
>
> list.add(rbp);
>
> connector.setRoutingConstraint(list);
>
>
>
> This is my code...can u pls tell me where i am goin wrong...
>
>
>
> thanks in advance...
>
> Balaji
>
>
>
> "Randy Hudson" <hudsonr@spam.com> wrote in message
> news:aj8esd$lk0$1@rogue.oti.com...
> > You probably need to use the BendpointRouter as the Connection Layer's
> > router.
> > You can use RelativeBendpoint or AbsoluteBendpoint. The difference is
> that
> > if you move the source and target, Absolute bendpoints do not move
> together.
> >
> > Logic example shows how to do this. See WireEditPart.
> >
> > "netbeans" <bkandan@selectica.com> wrote in message
> > news:aj85cp$gc1$1@rogue.oti.com...
> > > hi all,
> > > i am creating an xml editor using gef...most of my
> > > work is completed...but i dont knw how to use the
> > > RelativeBendPoint and ConnectionRouter class...
> > >
> > > is there any site explaining how to use these classes?
> > >
> > > thanks in advance...
> > >
> > > Balaji
> > >
> > >
> > >
> >
> >
>
>
Re: how to draw a bendpoint connection? [message #16797 is a reply to message #16782] Fri, 16 August 2002 01:58 Go to previous message
Eclipse UserFriend
Originally posted by: bkandan.selectica.com

Thanks man...its working...

Balaji

"Randy Hudson" <hudsonr@spam.com> wrote in message
news:ajbiab$98j$1@rogue.oti.com...
>
> "netbeans" <bkandan@selectica.com> wrote in message
> news:ajah4q$l4t$1@rogue.oti.com...
> > hi,
> > thanks for the suggestion....but i am still not able
> > to find where i am goin wrong...
> >
> > PolylineConnection connector = new PolylineConnection();
>
> connector.setConnectionRouter(new BendpointRouter());
>
> >
> > connector.setSourceAnchor(new ChopboxAnchor(new RectangleFigure()));
> >
> > connector.setTargetAnchor(new ChopboxAnchor(new RectangleFigure()));
> >
> > connector.setTargetDecoration(new PolygonDecoration());
> >
> > RelativeBendpoint rbp = new RelativeBendpoint(connector);
> >
> > rbp.setRelativeDimensions( 150, 155);
> >
> >
> > ArrayList list = new ArrayList();
> >
> > list.add(rbp);
> >
> > connector.setRoutingConstraint(list);
> >
> >
> >
> > This is my code...can u pls tell me where i am goin wrong...
> >
> >
> >
> > thanks in advance...
> >
> > Balaji
> >
> >
> >
> > "Randy Hudson" <hudsonr@spam.com> wrote in message
> > news:aj8esd$lk0$1@rogue.oti.com...
> > > You probably need to use the BendpointRouter as the Connection Layer's
> > > router.
> > > You can use RelativeBendpoint or AbsoluteBendpoint. The difference is
> > that
> > > if you move the source and target, Absolute bendpoints do not move
> > together.
> > >
> > > Logic example shows how to do this. See WireEditPart.
> > >
> > > "netbeans" <bkandan@selectica.com> wrote in message
> > > news:aj85cp$gc1$1@rogue.oti.com...
> > > > hi all,
> > > > i am creating an xml editor using gef...most of my
> > > > work is completed...but i dont knw how to use the
> > > > RelativeBendPoint and ConnectionRouter class...
> > > >
> > > > is there any site explaining how to use these classes?
> > > >
> > > > thanks in advance...
> > > >
> > > > Balaji
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:Maintenance on eclipse.org servers
Next Topic:GTK2, linux, and black canvas.
Goto Forum:
  


Current Time: Sat May 03 00:11:07 EDT 2025

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

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

Back to the top