prefuse

Prefuse example graph partly outside of JPanel

≯℡__Kan透↙ 提交于 2020-01-10 05:17:08
问题 I want to use Prefuse to visualise a graph. I followed their tutorial and tried their sample application. Its sourcecode can be found here However, even if I simply copy the full code, the resulting graph does not look as displayed in the tutorial. It is only half visible, stuck in JPanel's upper left corner. Some parts of it are missing becuase they would have to be displayed outside the panel. I tried with some graphs of my own, but I keep running into the same phenomenon. I suppose this is

How do I create a bar chart using the Java prefuse library?

别等时光非礼了梦想. 提交于 2019-12-19 10:53:27
问题 I've currently got prefuse to plot a scatter graph, where the X axis is the computer name and the Y axis is its temperature. How do I get it to draw bars showing the values instead of discrete points? I'm currently using the following code to render the points: ShapeAction shape = new ShapeAction(group, Constants.SHAPE_RECTANGLE); ColorAction strokeColor = new DataColorAction(group, dataType, Constants.NUMERICAL, VisualItem.STROKECOLOR, colorPalette); ActionList draw = new ActionList(); draw

How do I create a bar chart using the Java prefuse library?

蹲街弑〆低调 提交于 2019-12-19 10:53:06
问题 I've currently got prefuse to plot a scatter graph, where the X axis is the computer name and the Y axis is its temperature. How do I get it to draw bars showing the values instead of discrete points? I'm currently using the following code to render the points: ShapeAction shape = new ShapeAction(group, Constants.SHAPE_RECTANGLE); ColorAction strokeColor = new DataColorAction(group, dataType, Constants.NUMERICAL, VisualItem.STROKECOLOR, colorPalette); ActionList draw = new ActionList(); draw

Java Visualization - How to transpose a JTable in java?

五迷三道 提交于 2019-12-11 12:51:52
问题 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 support such transposing in Java? 回答1: If you're talking about rows/column inversion, it is fairly simple in Swing: Create your normal table model class representing columns and rows. Create your inverted table model class which is a wrapper around

Graph visualization using prefuse is too dense

牧云@^-^@ 提交于 2019-12-10 19:09:38
问题 The graph I have created using prefuse (shown below) is too dense! There are many nodes linking to many other nodes. Is there anyway I could display this more spread out? Thanks in advance! 回答1: Are you using a force based layout? If so, change the force parameters of your layout, or try a different layout action (radial, fructherman-rheinhold, etc). Most of the prefuse layouts have flexible layout parameters, which should fix your problem. In particular, use ForceDirectedLayout

Creating data in Prefuse

你说的曾经没有我的故事 提交于 2019-12-09 06:40:16
问题 I am new to Prefuse. The demo examples are all loaded data from a file/database. Is there any way to create the data dynamically instead of loading from file. For example, I want to create a tree data structure and visualize this. Any simple working example would be really helpful for me. 回答1: I've just been attacking this problem. Here's a tweaked version of Example.java which shows one way to make it happen. Instead of loading data from socialnet.xml , I'm generating it programatically

Displaying edges labels in prefuse (java) graphs

混江龙づ霸主 提交于 2019-12-07 10:10:24
问题 I'm new to prefuse (java) and would like to display edges labels in a graph. I've been searching for this but could not find the solution. Any idea about this ? Many thanks, Raphaël 回答1: I came here with the same question. But it seems the previous link is broken . I found this version and runs ok. http://netgrok.googlecode.com/svn-history/r2/trunk/src/test/AggregateDecoratorDemo.java Regards. 来源: https://stackoverflow.com/questions/5156641/displaying-edges-labels-in-prefuse-java-graphs

How can I produce visualizations combining network graphs and imaginary maps?

落花浮王杯 提交于 2019-12-06 14:14:08
问题 Basically, I'm looking for something like this awesome research project: Gmap, which was referenced in this related SO question. It's a rather novel data visualization that combines a network graph with an imaginary set of regions that looks like a map. Basically, the map-ification helps humans comprehend the enormous data set better. Cool, huh? GMap doesn't appear to be open source, though I plan to contact the authors. I already know how to create a network graph with a force-directed

Displaying edges labels in prefuse (java) graphs

烈酒焚心 提交于 2019-12-05 16:01:50
I'm new to prefuse (java) and would like to display edges labels in a graph. I've been searching for this but could not find the solution. Any idea about this ? Many thanks, Raphaël I came here with the same question. But it seems the previous link is broken . I found this version and runs ok. http://netgrok.googlecode.com/svn-history/r2/trunk/src/test/AggregateDecoratorDemo.java Regards. 来源: https://stackoverflow.com/questions/5156641/displaying-edges-labels-in-prefuse-java-graphs

Graph visualisation in Silverlight

戏子无情 提交于 2019-12-04 22:17:07
问题 I have a data structure that represents a directed graph and I'm looking for a good Silverlight visualisation to allow me to navigate from node to node, preferably with some nice animation. Does anyone know of any good UI controls or frameworks for this kind of display? Even a sample from another field (maybe a social network?). My graphs don't have many nodes so performance won't be an issue. I've seen the Prefuse library for Java (and Flash) which would be ideal. The "Degree of Interest"