Your are rellay a good helper when encountering prefuse-oriented problem.
These days I come with another problem about decorators and filtering. I use decorators for edge labelling, the main code is as follows:
private static final String EDGE_DECORATORS = "edge_decorators";
public static Schema DECORATOR_SCHEMA = PrefuseLib.getVisualItemSchema();
DECORATOR_SCHEMA.setDefault(VisualItem.TEXTCOLOR, ColorLib.rgb(0, 0, 0));
DECORATOR_SCHEMA.setDefault(VisualItem.FONT, FontLib.getFont("Sanserif",10)); //Tahoma
DefaultRendererFactory dr = new DefaultRendererFactory(tr);
dr.add(new InGroupPredicate(EDGE_DECORATORS), er);
m_vis.addDecorators(EDGE_DECORATORS, edges, DECORATOR_SCHEMA);
The above code is also delivered by you in somewhere. I user GraphDistanceFilter in my GraphView demo for filtering, but i find when some edge items are invisible(they have been filtered), there edge label is still in the display. I do not know how to slove this problem .I appreciate for your help. Thank you.
I can deliver my codes if possible.
usually the decorator inherits the visibility of its decorated item. When the visibility changes, maybe the action/actionlist that draws the decorator is just not re-run?
I hope this late answer is still helpful...
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.