Skip to main content



      Home
Home » Eclipse Projects » GEF » How to draw SWING like tree structure in Draw 2D?
How to draw SWING like tree structure in Draw 2D? [message #249307] Tue, 16 June 2009 14:52 Go to next message
Eclipse UserFriend
Hi,
I want to draw a tree like structure as shown in this link:

http://8978609898887592998-a-1802744773732722657-s-sites.goo glegroups.com/site/aatishmandelecha/Home/interesting/testCas eGraphically.jpg?attredirects=1&auth=ANoY7cq2CpIWybdsYme eJwT-NSvaUCgrhnm9SCAuvklT_f5y_VlY26ks2C8rDrh-Wlr-umUOB3dYXBw TmMeWIk6s5EhNiG58Q0uFwsoLAvxyRTgVWCN-FA0auDxnUuOJd8CvyzTqI32 l3KOrFFYd01-N_XDD8yVCqyTsq40nCtQojFgvoVSOwxl5U9OeG0PfwyCFEld GdaoFXysvYBQ1m2wXE0LY0zlNkwtzZY0V60iGc9LguQsyaPnDP6XMvpxfZgi OYEM-P5AI

I am using GEF/Draw2D to build this. I want to display tree like structure
and also then want to listen to changes if any TreeItem is selected.

In a nutshell, I want the power of DefaultMutableTreeNode, TreeModel,
JTree as present in SWING. I want the similar power in Draw2D. This is
because, I just don't want to display it. I want to listen to the actions
and perform some changes (just like we do other thing sin GEF , the M-V-C
kind of a thing).

How to do the above thing?

Thanks,
Aatish
Re: How to draw SWING like tree structure in Draw 2D? [message #249322 is a reply to message #249307] Wed, 17 June 2009 11:04 Go to previous message
Eclipse UserFriend
Hi Attish

There is a very nice tree example in the draw2d examples.

Cheers...
Anthony

aatish wrote:
> Hi,
> I want to draw a tree like structure as shown in this link:
>
> http://8978609898887592998-a-1802744773732722657-s-sites.goo glegroups.com/site/aatishmandelecha/Home/interesting/testCas eGraphically.jpg?attredirects=1&auth=ANoY7cq2CpIWybdsYme eJwT-NSvaUCgrhnm9SCAuvklT_f5y_VlY26ks2C8rDrh-Wlr-umUOB3dYXBw TmMeWIk6s5EhNiG58Q0uFwsoLAvxyRTgVWCN-FA0auDxnUuOJd8CvyzTqI32 l3KOrFFYd01-N_XDD8yVCqyTsq40nCtQojFgvoVSOwxl5U9OeG0PfwyCFEld GdaoFXysvYBQ1m2wXE0LY0zlNkwtzZY0V60iGc9LguQsyaPnDP6XMvpxfZgi OYEM-P5AI
>
>
> I am using GEF/Draw2D to build this. I want to display tree like
> structure and also then want to listen to changes if any TreeItem is
> selected.
>
> In a nutshell, I want the power of DefaultMutableTreeNode, TreeModel,
> JTree as present in SWING. I want the similar power in Draw2D. This is
> because, I just don't want to display it. I want to listen to the
> actions and perform some changes (just like we do other thing sin GEF ,
> the M-V-C kind of a thing).
>
> How to do the above thing?
>
> Thanks,
> Aatish
>
Previous Topic:[Announce] GEF 3.5.0 I200906051552 is available
Next Topic:GEF=Basic Doubts!!
Goto Forum:
  


Current Time: Sat Mar 15 17:49:06 EDT 2025

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

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

Back to the top