|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.controls.ControlAdapter
prefuse.controls.NeighborHighlightControl
public class NeighborHighlightControl
A ControlListener that sets the highlighted status (using the
VisualItem.setHighlighted method) for nodes neighboring the node currently
under the mouse pointer. The highlight flag might then be used by a color
function to change node appearance as desired.
| Field Summary |
|---|
| Fields inherited from interface prefuse.controls.Control |
|---|
LEFT_MOUSE_BUTTON, MIDDLE_MOUSE_BUTTON, RIGHT_MOUSE_BUTTON |
| Constructor Summary | |
|---|---|
NeighborHighlightControl()
Creates a new highlight control. |
|
NeighborHighlightControl(java.lang.String activity)
Creates a new highlight control that runs the given activity whenever the neighbor highlight changes. |
|
| Method Summary | ||
|---|---|---|
java.lang.String |
getActivity()
|
|
boolean |
isHighlightWithInvisibleEdge()
Indicates if neighbor nodes with edges currently not visible still get highlighted. |
|
void |
itemEntered(VisualItem<?> item,
java.awt.event.MouseEvent e)
Invoked when the mouse enters a VisualItem. |
|
void |
itemExited(VisualItem<?> item,
java.awt.event.MouseEvent e)
Invoked when the mouse exits a VisualItem. |
|
void |
setActivity(java.lang.String activity)
Sets the activity that is run when the neighbor highlight changes |
|
void |
setHighlightWithInvisibleEdge(boolean highlightWithInvisibleEdge)
Determines if neighbor nodes with edges currently not visible still get highlighted. |
|
protected
|
setNeighborHighlight(N n,
boolean state)
Set the highlighted state of the neighbors of a node. |
|
| Methods inherited from class prefuse.controls.ControlAdapter |
|---|
isEnabled, itemClicked, itemDragged, itemKeyPressed, itemKeyReleased, itemKeyTyped, itemMoved, itemPressed, itemReleased, itemWheelMoved, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NeighborHighlightControl()
public NeighborHighlightControl(java.lang.String activity)
activity - the update Activity to run| Method Detail |
|---|
public void itemEntered(VisualItem<?> item,
java.awt.event.MouseEvent e)
Control
itemEntered in interface ControlitemEntered in class ControlAdapterControl.itemEntered(prefuse.visual.VisualItem,
java.awt.event.MouseEvent)
public void itemExited(VisualItem<?> item,
java.awt.event.MouseEvent e)
Control
itemExited in interface ControlitemExited in class ControlAdapterControl.itemExited(prefuse.visual.VisualItem,
java.awt.event.MouseEvent)
protected <N extends NodeItem<N,E>,E extends EdgeItem<N,E>> void setNeighborHighlight(N n,
boolean state)
n - the node under considerationstate - the highlighting state to apply to neighborspublic boolean isHighlightWithInvisibleEdge()
public void setHighlightWithInvisibleEdge(boolean highlightWithInvisibleEdge)
highlightWithInvisibleEdge - assign true if neighbors with invisible edges should still get
highlighted, false otherwise.public java.lang.String getActivity()
public void setActivity(java.lang.String activity)
activity -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||