-
Hmm, strange, for me it works (and the Forum there does NOT show me as logged in). However, you should be able to go to Martins pap (prefuse assistance pool). It can be reached here:
[pap][1] > http://goosebumps4all.net/34all/bb/
There this will help you to navigate there.
Forums / PAP / baby pap - simple, easy to digest / TwoGraphDemo - using two distinct source data sets
And...
2009-10-30 13:50:40 UTC in the prefuse visualization toolkit
-
Some time ago (hmm, its already one year ago :D), I made this demo, maybe this gives you some assistance.
[link text][1]
Please note that it is not possible in prefuse to have hypergraphs and that it is also not possible to have edges between two graph instances.
hope that helps, Björn
[1]: http://goosebumps4all.net/34all/bb/showthread.php?tid=224.
2009-10-30 12:11:10 UTC in the prefuse visualization toolkit
-
If I understand you right, you don't know how to change the point, where exactly an edges arrowhead is sticked/fetched/attached (don't have the adequate english word at hand :)) to the target item. Like if the edge should point to the lower right corner of the target item or to the middle left part, etc?
If that's the case, you need to overwrite the EdgeRenderer and modify the target location...
2009-10-30 10:54:22 UTC in the prefuse visualization toolkit
-
Maybe
` Thread.sleep(2000);`
Is more adequate your the not-so-elegant part ;-)
Or a button which triggers the print, as it is probably for debug?
If you need this information continuously, consider writing your own Action ;-)
regards, Björn.
2009-10-30 10:47:04 UTC in the prefuse visualization toolkit
-
t.getRowCount()
Is that a table or visualTable (or other?) where you get your tuples from? FocusGroups are meant to hold VisualItems if I remember right. Iterating over m_vis.items(...) would be the right way to fill your FocusGroups.
So `m_vis.addFocusGroup("gr");
` is the line of code where the exception "group name "gr" already in use" is thrown? Are you s.
2009-10-30 10:45:18 UTC in the prefuse visualization toolkit
-
No, iterator looks good (you may include item.get("name") if you like).
But you put that in the middle of the code where initialization stuff is still done. Put it after the call
` vis.run("layout");` which will trigger the treeLayout to be run.
(vis.putAction just makes the vis aware of the corresponding action)
hope that helps, Björn.
2009-10-29 12:29:40 UTC in the prefuse visualization toolkit
-
Ooops, you're right :-O
Maybe ExpressionParser isn't that perfect to detect a predicate in if-then-else and parse it to predicate (instead of expression). Well, I had a look into the sources, IF is parsed to a prefuse.data.expression.IfExpression, which extends Expression (not Predicate). Maybe you can easily derive a class IfPredicate, which uses Predicates for the "then" and...
2009-10-28 21:28:45 UTC in the prefuse visualization toolkit
-
Iterator iter = m_vis.items("tree.nodes");
while iter ...
sysout<Ctrl+space> (item.getX() + "/" + item.getY());
That will output actual x/y coordinates of the visualItems in your "tree.nodes" group. Is that what you need?
regards, Björn.
2009-10-28 18:16:17 UTC in the prefuse visualization toolkit
-
ExpressionParser does not support if-statements. See http://prefuse.org/doc/api/prefuse/data/expression/parser/ExpressionParser.html for a good listing of what is supported.
What about using "AND" to concatenate both expressions, as you have spoken yourself?
> only display edges with non-zero degrees ***and*** edges with a weight attribute greater than a certain amount
hope...
2009-10-26 09:10:00 UTC in the prefuse visualization toolkit
-
The src JComponent is forwarded to
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JToolTip.html#setComponent(javax.swing.JComponent)
(I had a short look into the source code of JCustomTooltip. According to the java api, it can be null, so it should not really matter what you put in.
The javadoc comment of Display.setCustomToolTip may be interesting for you, too.
hope this...
2009-10-19 12:46:53 UTC in the prefuse visualization toolkit