Questions tagged [prefuse]

Prefuse is a set of software tools for creating rich interactive data visualizations in the Java programming language.

Prefuse is a Java-based toolkit for building interactive information visualization applications. Prefuse supports a rich set of features for data modeling, visualization, and interaction. It provides optimized data structures for tables, graphs, and trees, a host of layout and visual encoding techniques, and support for animation, dynamic queries, integrated search, and database connectivity. Prefuse is written in Java, using the Java 2D graphics library, and is easily integrated into Java Swing applications or web applets. Prefuse is licensed under the terms of a BSD license, and can be freely used for both commercial and non-commercial purposes.

The home page may be found at http://prefuse.org
Source code and demo can be found at https://github.com/prefuse/Prefuse

76 questions
1
vote
1 answer

Display Prefuse Node field

I want to display a simple Graph with nodes IDs inside Nodes using Prefuse but this seems to be more complicated than it sounds. Graph g = new Graph(); for (int i = 0; i < 3; ++i) { Node n1 = g.addNode(); n1.setInt("label", 1); // I am…
AbdelKh
  • 499
  • 7
  • 19
1
vote
0 answers

How can I show weight of edge using prefuse jar files

I am using Prefuse lib and creating a directed graph. For creating a graph, I used Graph g= new Graph(nodeTable,edgeTable,directed) edgeTable includes columns sourceNode, targetNode and weight of the edge. I need to show the weight of the edge.
Venkata Gogu
  • 1,021
  • 10
  • 25
1
vote
1 answer

Understanding Flash Packages

I'm trying to understand how packages and dependencies work with Adobe Flash Builder 4. I've copied an example here and put it in a .as file called DependencyGraph. However I get the error message: A file found in a source-path must have the same…
djq
  • 14,810
  • 45
  • 122
  • 157
1
vote
0 answers

Efficient casting of types for calculation

I'm having a prefuse-table structure, i.e., each row is represented by a tuple and you can access values via table.get(rowNumber, columnName) or via tuple.get(columnName) - whereas get will return an Object there are more specific methods if you…
LordAnomander
  • 1,103
  • 6
  • 16
1
vote
1 answer

Implement a custom force in Prefuse's ForceDirectedLayout

I would like to add custom forces to a force-directed-layout in Prefuse. Specifically I would like to make a) edges between specific nodes very rigid, b) introduce directed edges such that the source vertex tends to move above the target vertex. Any…
0__
  • 66,707
  • 21
  • 171
  • 266
1
vote
1 answer

Simple grid layout in java

So I need an automatic grid layout algorithm with "orthogonal" edges of some Java objects. Something like this. I'd be given some matrix from which I will create a graph instance (in Eclipse) and my output is layout of that graph (it would be very…
quark27
  • 21
  • 3
1
vote
1 answer

Prefuse Java Bar Graphs

Could someone tell me how I would be able to draw BarGraphs using prefuse with Java? Any resources that I could look into for learning how to draw them?
Preethi
  • 11
  • 1
1
vote
1 answer

How can I save a Prefuse generated graph as a pdf in java?

I am using Prefuse java API in my java code to visualize a network. I was wondering, how can I save the image? I want to save it as a pdf? Thanks in advance.
1
vote
1 answer

Java Visualization - How to transpose a JTable in java?

I am looking for methods to allow transposing my jTable on my UI. It could be by clicking a button or other action. My main question is how should I build the data model(abstractTableModel) for such purpose? And is there any ready-to-use method…
AnneS
  • 1,493
  • 3
  • 14
  • 19
1
vote
2 answers

Create circle out of 4 nodes and curved edges in prefuse

I'm trying to make a circle out of a Polygon (I know I could just use for example the shape renderer, but I need it like this). The circle should consist out of 4 Nodes and 4 curved Edges.The nodes are rendered by a ShapeRenderer and are positioned…
tonicaboni
  • 13
  • 2
1
vote
0 answers

How to layout a graph in a GEF editor with prefuse

Is it possible to "plug in" a prefuse layout (such as NodeLinkTreeLayout) to layout a graph in a GEF editor? Or would I have to port the algorithm to Draw2D?
QueNuevo
  • 105
  • 12
1
vote
1 answer

Removing nodes from a Prefuse graph

I'm trying to create a dynamically-updated Prefuse graph, where nodes are added and deleted regularly. I've been able to add nodes and edges fine, and then delete them, but I get exceptions when I try to add edges to the next set of nodes. Does…
John Walthour
  • 786
  • 2
  • 9
  • 23
1
vote
3 answers

Prefuse: Adding labels to edges?

In my prefuse visualization I want to add label to edges. I followed some examples proposed here on SO, but I can't bring it to work: I use this Renderer for my edges: private class CustomEdgeRenderer extends LabelRenderer { private…
anon
1
vote
1 answer

Tutorial / Overview about Prefuse graph layouts?

So far my prefuse visualization uses a RandomLayout, since I couldn't find out how other layouts, e.g. DirectedForceLayout or BallonTreeLayout work exactly. I googeled a lot, but couldn't find any explanation or tutorial that shows my various…
anon
1
vote
1 answer

GraphML Node Coloring Prefuse

I have a prefuse application that loads GraphML files where the nodes have a "Color" string property. ie. Green I want to allow a range of predefined colors to be specified, and I don't want to force…
PattimusPrime
  • 867
  • 8
  • 21