parent nodes: PrefuseDoku
Controls
http://www.prefuse.org/doc/api/prefuse/controls/package-summary.html
Controller manage interaction with the display.
AnchorUpdateControl
ControlAdapter
DragControl
FocusControl
HoverActionControl
Display myDisplay = new Display(new Visualization());
// adds the control with an action to do when hovering a node
addControlListener(new HoverActionControl("repaint"));
ColorAction colorAction = new ColorAction("group", VisualItem.FILLCOLOR, ColorLib.rgba(255,255,255,0));
colorAction.add("_hover", ColorLib.gray(200,210));NeighborHighlightControl
This Controll sets the neighbors of a node to highlighted, when the mouse enters a node and sets the neighbors of the node to not highlighted, when the mouse leaves the node. You also have to define the color for highlighting nodes otherwise you can not see an difference.
Display myDisplay = new Display(new Visualization());
// adds the control
myDisplay.addControlListener(new NeighborHighlightControl());
// set the _highlight color
ColorAction colorAction = new ColorAction("group", VisualItem.FILLCOLOR, ColorLib.rgba(255,255,255,0));
colorAction.add("_highlight", ColorLib.rgb(255,200,125));PanControl
RotationControl
SubtreeDragControl
ToolTipControl
WheelZoomControl
ZoomControl
ZoomingPanControl
ZoomToFitControl