-
There is probably a way to use one of the encoder or renderer classes to accomplish this, but I have used something like this before:
[code]
vis.data.visit(function(ds:DataSprite):void
{
if (ds.data.hasCriteria){
var shadow:DropShadowFilter = new DropShadowFilter();
}
}
[/code]
HTH
Pete.
2010-01-06 22:28:50 UTC by superpaj
-
this might help you
myVis.data.edges.setProperties({
"lineWidth" : 4
});.
2010-01-05 13:35:21 UTC by djels
-
Hi,
I'm having problem to represent data node with a flex component.
Anyone have any tips on how to achieve this?
I have used a custom IRenderer, with no result.
I have verified that the custom renderer is invoked and worked if I represent the node with an actionscript component instead.
Regards,
Edward Yakop.
2010-01-05 03:02:16 UTC by edward_yakop
-
So all the nodes whose color should be reset have the exact same name? Sounds uncommon to me, but ok :)
I suppose there may be issues with running actions.
For example if the action(list) where your default colorAction is included is running continuously, then it will immediately overwrite the manual setting you did with m_vis.setValue.
Also, there must be a RepaintAction called after you...
2010-01-04 20:02:11 UTC by thinkpositiv
-
I wonder if I can specify the width of edges. In my app, I would like to use the width of edges to indicate the degree of association between two linked nodes.
2010-01-03 11:56:55 UTC by cy163
-
zemm,
I'm with you. I know how to use Flex, but I'm having problems getting a Flare demo to work using FlareVis. The only examples that I've seen are very simple ones, such as:
http://elixirk.wordpress.com/2008/11/07/using-flare-prefuse-visualization-toolkit-in-flex/
Does anyone know of a simple example using FlareVis with one of the demo examples? For example, how do I use smoke or...
2009-12-30 01:47:32 UTC by laxmidi
-
I'm trying to gracefully transition from one ForceDirectedLayout GraphML data set to another that includes some of the same nodes. The best solution I've come up with is to first eliminate the nodes that are not in the new network and then use a Tween to move the remaining nodes to their new x/y position, like so:
var tx:Tween = new Tween(ns, 2, {x:new_node.data.x});
var ty:Tween =...
2009-12-28 21:11:36 UTC by chrisw428
-
Hi Björn.
thx for the reply,i have tried with what you proposed without success.what i did is this:
m_vis.setValue("graph.nodes", "label='"+string+"'", VisualItem.FILLCOLOR, ColorLib.rgb(200,200,255));
where "string" are nodes name that have already been colored and that i want to bring back to their initial Color(all nodes color).
but nothing append,the color of coloring...
2009-12-27 20:09:03 UTC by christp
-
This function is useful for setting a datafield of multiple items to the same value:
m_vis.setValue("graph.nodes", yourPredicateHere, VisualItem.FILLCOLOR, ColorLib.rgba(0,0,0,0));
See [Visualization.setValue(...) javadoc][1]
If you need to (and did not use a custom schema), the default can be found via PrefuseLib.getVisualItemSchema().getDefault(VisualItem.FILLCOLOR). Remember that...
2009-12-27 12:00:53 UTC by thinkpositiv
-
Hi Prefusians,
i have color some particular nodes of the Graphview demo and i want to bring them back to the initiale color(basic color of all nodes) without restarting the Programm.any ideas are welcoming.
2009-12-27 00:59:15 UTC by christp