Package ghidra.graph.job
Class RelayoutAndEnsureVisible<V extends VisualVertex,E extends VisualEdge<V>>
java.lang.Object
ghidra.graph.job.AbstractAnimatorJob
ghidra.graph.job.AbstractGraphVisibilityTransitionJob<V,E>
ghidra.graph.job.AbstractGraphTransitionJob<V,E>
ghidra.graph.job.RelayoutFunctionGraphJob<V,E>
ghidra.graph.job.RelayoutAndEnsureVisible<V,E>
- Type Parameters:
V- the vertex typeE- the edge type
- All Implemented Interfaces:
GraphJob
public class RelayoutAndEnsureVisible<V extends VisualVertex,E extends VisualEdge<V>>
extends RelayoutFunctionGraphJob<V,E>
Graph job to move the entire graph to ensure one or two vertices are fully on screen. If both
vertices can't be fully shown at the same time, the primary vertex gets precedence.
-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.graph.job.AbstractGraphTransitionJob
AbstractGraphTransitionJob.ArticulationTransitionPoints, AbstractGraphTransitionJob.TransitionPoints -
Field Summary
Fields inherited from class ghidra.graph.job.AbstractGraphTransitionJob
edgeArticulationLocations, finalEdgeArticulations, graphLayout, vertexLocationsFields inherited from class ghidra.graph.job.AbstractGraphVisibilityTransitionJob
duration, FAST_DURATION, graph, NORMAL_DURATION, useAnimation, viewerFields inherited from class ghidra.graph.job.AbstractAnimatorJob
animator, isShortcut, log, TOO_BIG_TO_ANIMATE -
Constructor Summary
ConstructorsConstructorDescriptionRelayoutAndEnsureVisible(GraphViewer<V, E> viewer, V primaryVertex, V secondaryVertex, boolean useAnimation) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreate the vertex locations that will be transitioned over the life of this animator.voidsetPercentComplete(double percentComplete) Callback from our animator.Methods inherited from class ghidra.graph.job.RelayoutFunctionGraphJob
finishedMethods inherited from class ghidra.graph.job.AbstractGraphTransitionJob
calculateDefaultLayoutLocations, calculateDefaultLayoutLocations, canShortcut, clearLocationCache, createAnimator, getCurrentLayoutLocations, installFinalEdgeArticulations, shortcut, toLocation, updatePointFromPercentCompleteMethods inherited from class ghidra.graph.job.AbstractGraphVisibilityTransitionJob
getEdges, getEdges, isTooBigToAnimate, updateOpacityMethods inherited from class ghidra.graph.job.AbstractAnimatorJob
dispose, execute, isFinished, setBusyListener, stop, toString, trace
-
Constructor Details
-
RelayoutAndEnsureVisible
public RelayoutAndEnsureVisible(GraphViewer<V, E> viewer, V primaryVertex, V secondaryVertex, boolean useAnimation)
-
-
Method Details
-
initializeVertexLocations
protected void initializeVertexLocations()Description copied from class:AbstractGraphTransitionJobCreate the vertex locations that will be transitioned over the life of this animator. The locations are inlayout space. This method is expected to updateAbstractGraphTransitionJob.vertexLocations(and optionallyAbstractGraphTransitionJob.edgeArticulationLocations).- Overrides:
initializeVertexLocationsin classRelayoutFunctionGraphJob<V extends VisualVertex,E extends VisualEdge<V>>
-
setPercentComplete
public void setPercentComplete(double percentComplete) Description copied from class:AbstractGraphTransitionJobCallback from our animator.- Overrides:
setPercentCompletein classAbstractGraphTransitionJob<V extends VisualVertex,E extends VisualEdge<V>>
-