Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Order of realization of Connection
Order of realization of Connection [message #226105] Mon, 06 November 2006 05:59 Go to next message
Eclipse UserFriend
Originally posted by: prasanna.tatti.in.bosch.com

Hi,
Connections are drawn after Figures in the graphical viewer. How to bring figure to front and send connection to back in a diagram where figure is not part of connected diagrams.

See attached figure.

Any help will be appreciated.

Thanks,
Prasanna
Re: Order of realization of Connection [message #226131 is a reply to message #226105] Mon, 06 November 2006 06:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

Move the entire connection layer to be below the primary layer. See
FGREP#createPrintableLayers().

"Prasanna" <prasanna.tatti@in.bosch.com> wrote in message
news:22586499.1162792830219.JavaMail.root@cp1.javalobby.org...
> Hi,
> Connections are drawn after Figures in the graphical viewer. How to bring
> figure to front and send connection to back in a diagram where figure is
> not part of connected diagrams.
>
> See attached figure.
>
> Any help will be appreciated.
>
> Thanks,
> Prasanna
Re: Order of realization of Connection [message #226137 is a reply to message #226131] Mon, 06 November 2006 12:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shruthi.cn.in.bosch.com

Hello Mr. Pratik Shah,

I tried the approach that you have mentioned.
These are the steps:-
1) Created a class "BDEditorScalableFreeformRootEditPart" that extends
ScalableFreeformRootEditPart.
2) Override the method createPrintableLayers and put the connection layer
first and then primary layer as shown below.

protected LayeredPane createPrintableLayers() {
FreeformLayeredPane layeredPane = new FreeformLayeredPane();
layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
return layeredPane;
}

3) Set the viewer's root edit part to an object of the above class.
viewer.setRootEditPart(new BDEditorScalableFreeformRootEditPart());

When i run my application, the connections are still drawn at the top. Am
i missing any step in between? Please help.

Thank you very much
Best Regards
Shruthi
Re: Order of realization of Connection - Please provide help [message #226225 is a reply to message #226137] Wed, 08 November 2006 08:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shruthi.cn.in.bosch.com

Hello,

Please provide help for the query.

I tried the approach of moving the entire connection layer to be below the
primary layer.
These are the steps:-
1) Created a class "BDEditorScalableFreeformRootEditPart" that extends
ScalableFreeformRootEditPart.

2) Override the method createPrintableLayers and put the connection layer
first and then primary layer as shown below.

protected LayeredPane createPrintableLayers() {
FreeformLayeredPane layeredPane = new FreeformLayeredPane();
layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
return layeredPane;
}

3) Set the viewer's root edit part to an object of the above class.
viewer.setRootEditPart(new BDEditorScalableFreeformRootEditPart());

When i run my application, the connections are still drawn at the top. Am
i missing any step in between? Please help.


Thanks
Regards
Shruthi
Re: Order of realization of Connection - Please provide help [message #226281 is a reply to message #226225] Thu, 09 November 2006 00:05 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

I don't think you're missing any step. Try debugging. Ensure that your
root editpart is not being overwritten and the createPrintableLayers()
method is indeed being called.

"shruthi" <shruthi.cn@in.bosch.com> wrote in message
news:62ae1c4a11d33b364b0081df997c236f$1@www.eclipse.org...
> Hello,
>
> Please provide help for the query.
> I tried the approach of moving the entire connection layer to be below the
> primary layer.
> These are the steps:-
> 1) Created a class "BDEditorScalableFreeformRootEditPart" that extends
> ScalableFreeformRootEditPart.
>
> 2) Override the method createPrintableLayers and put the connection layer
> first and then primary layer as shown below.
>
> protected LayeredPane createPrintableLayers() {
> FreeformLayeredPane layeredPane = new FreeformLayeredPane();
> layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
> layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
> return layeredPane;
> }
>
> 3) Set the viewer's root edit part to an object of the above class.
> viewer.setRootEditPart(new BDEditorScalableFreeformRootEditPart());
>
> When i run my application, the connections are still drawn at the top. Am
> i missing any step in between? Please help.
>
>
> Thanks
> Regards
> Shruthi
>
>
>
Previous Topic:Placing child figure at fixed relative position
Next Topic:SnapToGrid class usage
Goto Forum:
  


Current Time: Sat Nov 27 02:25:56 GMT 2021

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

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

Back to the top