Re: [cytoscape-helpdesk] Find node shape

6 views
Skip to first unread message

Jason Montojo

unread,
May 13, 2013, 10:10:01 AM5/13/13
to cytoscape...@googlegroups.com
Hi Khaled,

That's a bug in the current release.  It currently affects apps that are created using the simple method.  One workaround is to use the OSGi/bundle method to make an app.  In the meantime, we can fix this issue for the next release, which is currently scheduled for October.

Thanks,
Jason


On Sat, May 11, 2013 at 12:17 AM, Khaled <khaled...@gmail.com> wrote:
Hi,

I want to find the shapes of all nodes in a network, here is the code I wrote:

public class MenuAction extends AbstractCyAction {
private CyAppAdapter adapter;

public MenuAction(CyAppAdapter adapter) {
super("Save node color and shape", adapter.getCyApplicationManager(),
"network", adapter.getCyNetworkViewManager());
this.adapter = adapter;
setPreferredMenu("Layout");
}

@Override
public void actionPerformed(ActionEvent e) {
CyApplicationManager manager = adapter.getCyApplicationManager();
CyNetworkView networkView = manager.getCurrentNetworkView();
NodeShape shape;

for (View<? extends CyIdentifiable> nodeView : networkView.getAllViews())
shape = nodeView.getVisualProperty(BasicVisualLexicon.NODE_SHAPE);
}
}

However, this code always throws "java.Lang.NoClassDefFoundError: org/cytoscape/view/presentation/property/values/NodeShape" exception in thread "AWT-EventQueue-0" what am I doing wrong here?

Thank you,
Khaled

--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at http://groups.google.com/group/cytoscape-helpdesk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Khaled

unread,
May 13, 2013, 3:07:50 PM5/13/13
to cytoscape...@googlegroups.com
Thank you a lot
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages