[gephi-dev] How to integrate a new perspective?

Chris Esposito chris.esposito at gmail.com
Thu Jan 6 20:09:07 CET 2011


Hi,
       I did a new perspective, but after looking at how it looked I decided
that doing it as 3 new panels in the Overview Perspective would work better.
This generally works, but I'm seeing some odd behavior. I followed the
instructions in
http://wiki.gephi.org/index.php/HowTo_add_a_module_panel#Register_in_a_Perspective,
although I may have left 'Open at application start' unchecked.

What I implemented in my module was just a test case- my 3 windows, each
with just a few dummy controls to give some content. I wanted to get the
integration to gephi sorted out before migrating the content and
functionality over.

 I specified one panel in graph mode / position, one panel in ranking mode,
and one panel in timeline mode. The overview perspective already has windows
in some of these positions. I did a build on my module, then a 'clean and
build all' on gephi 0.7beta, then a run.

1) the windows didn't show up where I specified, although I could move them
around.

2) When switching between perspectives I would sometimes see my windows
appear in those perspectives, sometime not. Sometimes the windows would
move, or I would see multiple copies of the same window at different
locations within the top-level frame.

I'd be happy to provide my simple module in case anybody has time to look to
see what I might have done wrong, or to see if they can replicate the
problem.

Thanks,
Chris


On Tue, Dec 28, 2010 at 12:21 PM, Mathieu Bastian <mathieu.bastian at gmail.com
> wrote:

> Hi Chris,
>
> That seems a very nice project! You should definitevely be able to
> integrate these feaures as plug-ins.
>
> The Perspective SPI is located in the DesktopPerspective module. Add
> this module as a depenency and implement the Perspective service, here
> are the steps:
> 1. Create a new module and add Desktop Perspective as dependency.
> 2. Create a new implementation of Perspective and fill methods.
> 3. Add @ServiceProvider annotation to your class to be found by the
> system, like @ServiceProvider(service = Perspective.class, position =
> 500).
> 4. Set the position to define the order of appearance, Overview is
> 100, Preview is 300.
>
> And then, follow the steps on this page to register your components as
> member of a Perspective:
>
> http://wiki.gephi.org/index.php/HowTo_add_a_module_panel#Register_in_a_Perspective
>
> Let me know if you have issues,
>
> Mathieu
>
> On Sun, Dec 26, 2010 at 2:01 PM, Chris Esposito
> <chris.esposito at gmail.com> wrote:
> > Greetings,
> >      I've got a Netbeans Platform app that I'd like to integrate into
> gephi
> > as a plugin - I've briefly described what it does at the bottom of this
> > message. It's currently based on Netbeans 6.9.1, and is done as a
> > TopComponentGroup with 4 TopComponents (2 on the left - Explorer and one
> > below; 1 window in Editor position, and one in the output window
> position).
> > These windows work together, and so form a 'perspective', if I correctly
> > understand how that term is used in gephi.  I can create an nbm file
> easily
> > enough, but if I want my TopComponentGroup to appear as another
> perspective
> > at the same level as Overview, Data Laboratory and Preview, how do I do
> > that?
> >
> > Thank you,
> > Chris Esposito
> >
> > Description:
> > This app analyzes data usage across a business process model / workflow
> as
> > part of a process for automating the design and construction of a
> software
> > object model for applications that will be built to support the
> > implementation of this process. The final result is a network where the
> > nodes in the network are data items used in the process, the edges
> indicate
> > a strong relationship between the endpoints, and the edge weight is a
> > numerical measure of how strong that relationship is.
> >
> > 1. Connect to user specified process model database
> > 2. Allow user to select which model to extract from
> > 3. extract appropriate fields / records and calculate the pairwise
> distance
> > matrix for data items used in the process
> > 4. Using user-specified parameters,  do a pathfinder data reduction on
> the
> > complete network from (3) to strip away the weakest relationship edges
> (this
> > typically removes 90-95% of the edges)
> >
> > At this point, the user can use the layout / visualization / clustering
> > algorithms already in gephi, plus a few more analysis and clustering
> > algorithms I've done in the past and will be putting in somehow (a new
> > plugin as well, I guess).
> >
> >
> >
> > _______________________________________________
> > gephi-dev mailing list
> > gephi-dev at lists.gephi.org
> > http://gephi.org/mailman/listinfo/gephi-dev
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gephi.org/pipermail/gephi-dev/attachments/20110106/a273d605/attachment.html>


More information about the gephi-dev mailing list