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
ConstructorDescriptionGPickedState
(edu.uci.ics.jung.visualization.picking.MultiPickedState<V> pickedState) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPickingListener
(PickListener<V> pickListener) void
clear()
Object[]
boolean
boolean
void
pickToActivate
(V vertex) A convenience method to clear the current selected vertices and select the given vertexvoid
pickToSync
(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.void
pickToSync
(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.void
void
removePickingListener
(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:
pick
in interfaceedu.uci.ics.jung.visualization.picking.PickedState<V>
-
clear
public void clear()- Specified by:
clear
in interfaceedu.uci.ics.jung.visualization.picking.PickedState<V>
-
getPicked
- Specified by:
getPicked
in interfaceedu.uci.ics.jung.visualization.picking.PickedState<V>
-
isPicked
-
getSelectedObjects
- Specified by:
getSelectedObjects
in interfaceItemSelectable
-
addItemListener
- Specified by:
addItemListener
in interfaceItemSelectable
-
removeItemListener
- Specified by:
removeItemListener
in interfaceItemSelectable
-