Package ghidra.graph.viewer
Class VisualGraphViewUpdater<V extends VisualVertex,E extends VisualEdge<V>>
- java.lang.Object
- 
- ghidra.graph.viewer.VisualGraphViewUpdater<V,E>
 
- 
- Type Parameters:
- V- the vertex type
- E- the edge type
 
 public class VisualGraphViewUpdater<V extends VisualVertex,E extends VisualEdge<V>> extends java.lang.ObjectThis is the class through which operations travel that manipulate the view and graph while plugged-in to the UI. (Setup and tear down operations performed before the view or graph are visible need not pass through this class.) This class is responsible for controlling how to display view and graph changes, including whether to animate.The animations are categorized into those that mutate the graph and those that are just display animations (like hover animations). 
- 
- 
Constructor SummaryConstructors Constructor Description VisualGraphViewUpdater(GraphViewer<V,E> primaryViewer, VisualGraph<V,E> graph)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddJobScheduledListener(Callback c)Add a listener to be notified when a job is started.voidanimateEdgeHover()voidcenterLayoutSpacePointWithoutAnimation(java.awt.Point point)voidcenterViewSpacePointWithAnimation(java.awt.Point point)voidcenterViewSpacePointWithoutAnimation(java.awt.Point point)voiddispose()voidensureVertexAreaVisible(V vertex, java.awt.Rectangle area, BusyListener callbackListener)voidensureVertexVisible(V vertex, java.awt.Rectangle area)voidfitAllGraphsToViewsNow()Fits the graph into both the primary and satellite viewsvoidfitGraphToViewerLater()Will schedule the fitting work to happen now if now work is being done, or later otherwisvoidfitGraphToViewerLater(edu.uci.ics.jung.visualization.VisualizationServer<V,E> theViewer)voidfitGraphToViewerNow()voidfitGraphToViewerNow(edu.uci.ics.jung.visualization.VisualizationServer<V,E> theViewer)booleanisAnimationEnabled()booleanisBusy()Returns true if this updater is performing any animations or running any jobs that can mutate the graph or viewbooleanisMutatingGraph()Returns true if this updater is running any jobs that can mutate the graph or viewvoidmoveVertexToCenterTopWithAnimation(V vertex)voidmoveVertexToCenterTopWithAnimation(V vertex, BusyListener callbackListener)voidmoveVertexToCenterTopWithoutAnimation(V vertex)voidmoveVertexToCenterWithAnimation(V vertex)voidmoveVertexToCenterWithAnimation(V vertex, BusyListener callbackListener)voidmoveVertexToCenterWithoutAnimation(V vertex)voidmoveViewerLocationWithoutAnimation(java.awt.Point translation)voidscheduleViewChangeJob(GraphJob job)voidsetGraphPerspective(GraphPerspectiveInfo<V,E> graphInfo)voidsetGraphScale(double scale)voidsetLayoutSpacePointWithAnimation(java.awt.Point point)voidsetLayoutSpacePointWithoutAnimation(java.awt.geom.Point2D point)protected voidsetSatelliteViewer(SatelliteGraphViewer<V,E> satelliteViewer)voidstopAllAnimation()protected voidstopAllNonMutativeAnimation()voidstopEdgeHoverAnimation()voidtwinkeVertex(V vertex)voidupdateEdgeShapes(java.util.Collection<E> edges)voidzoomInCompletely()voidzoomInCompletely(V centerOnVertex)
 
- 
- 
- 
Constructor Detail- 
VisualGraphViewUpdaterpublic VisualGraphViewUpdater(GraphViewer<V,E> primaryViewer, VisualGraph<V,E> graph) 
 
- 
 - 
Method Detail- 
setSatelliteViewerprotected void setSatelliteViewer(SatelliteGraphViewer<V,E> satelliteViewer) 
 - 
addJobScheduledListenerpublic void addJobScheduledListener(Callback c) Add a listener to be notified when a job is started. Jobs often, but not always, mutate the underlying graph. For this reason, other tasks that use the graph may want to not do their work while a job is running.- Parameters:
- c- the listener
 
 - 
isAnimationEnabledpublic boolean isAnimationEnabled() 
 - 
disposepublic void dispose() 
 - 
fitAllGraphsToViewsNowpublic void fitAllGraphsToViewsNow() Fits the graph into both the primary and satellite views
 - 
fitGraphToViewerNowpublic void fitGraphToViewerNow() 
 - 
fitGraphToViewerNowpublic void fitGraphToViewerNow(edu.uci.ics.jung.visualization.VisualizationServer<V,E> theViewer) 
 - 
fitGraphToViewerLaterpublic void fitGraphToViewerLater() Will schedule the fitting work to happen now if now work is being done, or later otherwis
 - 
fitGraphToViewerLaterpublic void fitGraphToViewerLater(edu.uci.ics.jung.visualization.VisualizationServer<V,E> theViewer) 
 - 
zoomInCompletelypublic void zoomInCompletely() 
 - 
zoomInCompletelypublic void zoomInCompletely(V centerOnVertex) 
 - 
moveVertexToCenterTopWithoutAnimationpublic void moveVertexToCenterTopWithoutAnimation(V vertex) 
 - 
moveVertexToCenterWithoutAnimationpublic void moveVertexToCenterWithoutAnimation(V vertex) 
 - 
moveVertexToCenterWithAnimationpublic void moveVertexToCenterWithAnimation(V vertex) 
 - 
moveVertexToCenterWithAnimationpublic void moveVertexToCenterWithAnimation(V vertex, BusyListener callbackListener) 
 - 
moveVertexToCenterTopWithAnimationpublic void moveVertexToCenterTopWithAnimation(V vertex) 
 - 
moveVertexToCenterTopWithAnimationpublic void moveVertexToCenterTopWithAnimation(V vertex, BusyListener callbackListener) 
 - 
moveViewerLocationWithoutAnimationpublic void moveViewerLocationWithoutAnimation(java.awt.Point translation) 
 - 
centerViewSpacePointWithAnimationpublic void centerViewSpacePointWithAnimation(java.awt.Point point) 
 - 
centerViewSpacePointWithoutAnimationpublic void centerViewSpacePointWithoutAnimation(java.awt.Point point) 
 - 
centerLayoutSpacePointWithoutAnimationpublic void centerLayoutSpacePointWithoutAnimation(java.awt.Point point) 
 - 
setLayoutSpacePointWithoutAnimationpublic void setLayoutSpacePointWithoutAnimation(java.awt.geom.Point2D point) 
 - 
setLayoutSpacePointWithAnimationpublic void setLayoutSpacePointWithAnimation(java.awt.Point point) 
 - 
ensureVertexVisiblepublic void ensureVertexVisible(V vertex, java.awt.Rectangle area) 
 - 
ensureVertexAreaVisiblepublic void ensureVertexAreaVisible(V vertex, java.awt.Rectangle area, BusyListener callbackListener) 
 - 
updateEdgeShapespublic void updateEdgeShapes(java.util.Collection<E> edges) 
 - 
setGraphPerspectivepublic void setGraphPerspective(GraphPerspectiveInfo<V,E> graphInfo) 
 - 
twinkeVertexpublic void twinkeVertex(V vertex) 
 - 
setGraphScalepublic void setGraphScale(double scale) 
 - 
animateEdgeHoverpublic void animateEdgeHover() 
 - 
isBusypublic boolean isBusy() Returns true if this updater is performing any animations or running any jobs that can mutate the graph or view- Returns:
- true if busy
 
 - 
isMutatingGraphpublic boolean isMutatingGraph() Returns true if this updater is running any jobs that can mutate the graph or view- Returns:
- true if busy
 
 - 
scheduleViewChangeJobpublic void scheduleViewChangeJob(GraphJob job) 
 - 
stopEdgeHoverAnimationpublic void stopEdgeHoverAnimation() 
 - 
stopAllAnimationpublic void stopAllAnimation() 
 - 
stopAllNonMutativeAnimationprotected void stopAllNonMutativeAnimation() 
 
- 
 
-