Package ghidra.graph.viewer.event.mouse
Class VertexMouseInfo<V extends VisualVertex,E extends VisualEdge<V>>
java.lang.Object
ghidra.graph.viewer.event.mouse.VertexMouseInfo<V,E>
- Type Parameters:
V
- the vertex typeE
- the edge type
A class that knows how and where a given vertex was clicked. Further, this class knows how
to get clicked components within a given vertex.
-
Constructor Summary
ConstructorDescriptionVertexMouseInfo
(MouseEvent originalMouseEvent, V vertex, Point2D vertexBasedClickPoint, GraphViewer<V, E> viewer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
boolean
boolean
boolean
void
selectVertex
(boolean addToSelection) Selects, or 'pick's the given vertex.void
setClickedComponent
(Component clickedComponent, Point2D vertexBasedPoint) You can use this method to override which Java component will get the forwarded event.void
void
toString()
-
Constructor Details
-
VertexMouseInfo
public VertexMouseInfo(MouseEvent originalMouseEvent, V vertex, Point2D vertexBasedClickPoint, GraphViewer<V, E> viewer)
-
-
Method Details
-
isScaledPastInteractionThreshold
public boolean isScaledPastInteractionThreshold() -
getCursorForClickedComponent
-
isGrabArea
public boolean isGrabArea() -
isButtonClick
public boolean isButtonClick() -
isVertexSelected
public boolean isVertexSelected() -
selectVertex
public void selectVertex(boolean addToSelection) Selects, or 'pick's the given vertex.- Parameters:
addToSelection
- true signals to add the given vertex to the set of selected vertices; false signals to clear the existing selected vertices before selecting the given vertex
-
getClickedComponent
-
getViewer
-
getVertex
-
getDeepestComponentBasedClickPoint
-
setClickedComponent
You can use this method to override which Java component will get the forwarded event. By default, the mouse info will forward the event to the component that is under the point in the event.- Parameters:
clickedComponent
- the component that was clickedvertexBasedPoint
- the point, relative to the vertex's coordinates
-
getEventSource
-
getOriginalMouseEvent
-
getTranslatedMouseEvent
-
forwardEvent
public void forwardEvent() -
simulateMouseEnteredEvent
public void simulateMouseEnteredEvent() -
simulateMouseExitedEvent
public void simulateMouseExitedEvent() -
isPopupClick
public boolean isPopupClick() -
toString
-