Class GPickedState<V>
java.lang.Object
ghidra.graph.viewer.event.picking.GPickedState<V>
- Type Parameters:
V- the vertex type
- All Implemented Interfaces:
edu.uci.ics.jung.visualization.picking.PickedInfo<V>,edu.uci.ics.jung.visualization.picking.PickedState<V>,ItemSelectable
public class GPickedState<V>
extends Object
implements edu.uci.ics.jung.visualization.picking.PickedState<V>
This picked-state is a wrapper for
PickedState that allows us to broadcast events
with the trigger of that event.-
Constructor Summary
ConstructorsConstructorDescriptionGPickedState(edu.uci.ics.jung.visualization.picking.MultiPickedState<V> pickedState) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddPickingListener(PickListener<V> pickListener) voidclear()Object[]booleanbooleanvoidpickToActivate(V vertex) A convenience method to clear the current selected vertices and select the given vertexvoidpickToSync(V vertex) Picks the given vertex, but signals that the pick is really just to make sure that the vertex is picked in order to match the graph's notion of the current location.voidpickToSync(V vertex, boolean addToSelection) Picks the given vertex, but signals that the pick is really just to make sure that the vertex is picked in order to match the graph's notion of the current location.voidvoidremovePickingListener(PickListener<V> pickListener)
-
Constructor Details
-
GPickedState
-
-
Method Details
-
addPickingListener
-
removePickingListener
-
pickToSync
Picks the given vertex, but signals that the pick is really just to make sure that the vertex is picked in order to match the graph's notion of the current location. To pick a vertex and signal that the location has changed, callpick(Object, boolean). Calling this method is the same as callingpickToSync(vertex, false);
- Parameters:
vertex- the vertex to pick
-
pickToSync
Picks the given vertex, but signals that the pick is really just to make sure that the vertex is picked in order to match the graph's notion of the current location. To pick a vertex and signal that the location has changed, callpick(Object, boolean)- Parameters:
vertex- the vertex to pickaddToSelection- true signals that the given vertex should be picked, but not to remove any other picked vertices; false signals to pick the given vertex and to clear any other picked vertices
-
pickToActivate
A convenience method to clear the current selected vertices and select the given vertex- Parameters:
vertex- the vertex to pick
-
pick
- Specified by:
pickin interfaceedu.uci.ics.jung.visualization.picking.PickedState<V>
-
clear
public void clear()- Specified by:
clearin interfaceedu.uci.ics.jung.visualization.picking.PickedState<V>
-
getPicked
- Specified by:
getPickedin interfaceedu.uci.ics.jung.visualization.picking.PickedState<V>
-
isPicked
-
getSelectedObjects
- Specified by:
getSelectedObjectsin interfaceItemSelectable
-
addItemListener
- Specified by:
addItemListenerin interfaceItemSelectable
-
removeItemListener
- Specified by:
removeItemListenerin interfaceItemSelectable
-