Package ghidra.graph.job
Class AbstractGraphVisibilityTransitionJob<V extends VisualVertex,E extends VisualEdge<V>>
- java.lang.Object
- 
- ghidra.graph.job.AbstractAnimatorJob
- 
- ghidra.graph.job.AbstractGraphVisibilityTransitionJob<V,E>
 
 
- 
- Type Parameters:
- V- the vertex type
- E- the edge type
 - All Implemented Interfaces:
- GraphJob
 - Direct Known Subclasses:
- AbstractGraphTransitionJob,- FilterVerticesJob
 
 public abstract class AbstractGraphVisibilityTransitionJob<V extends VisualVertex,E extends VisualEdge<V>> extends AbstractAnimatorJob A job that provides an animator and callbacks for transitioning the visibility of graph vertices. The opacity value will change from 0 to 1 over the course of the job. Subclasses can decide how to use the opacity value as it changes. For example, a subclass can fade in or out the vertices provided to the job.
- 
- 
Field SummaryFields Modifier and Type Field Description protected intdurationprotected static intFAST_DURATIONprotected VisualGraph<V,E>graphprotected static intNORMAL_DURATIONprotected booleanuseAnimationprotected GraphViewer<V,E>viewer- 
Fields inherited from class ghidra.graph.job.AbstractAnimatorJobanimator, isShortcut, log, TOO_BIG_TO_ANIMATE
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractGraphVisibilityTransitionJob(GraphViewer<V,E> viewer, boolean useAnimation)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jdesktop.animation.timing.AnimatorcreateAnimator()protected voidfinished()A callback given when this animator has run to completion.protected java.util.Set<E>getEdges(java.util.Collection<V> vertices)protected java.util.Collection<E>getEdges(V vertex)protected booleanisTooBigToAnimate()Returns true if the graph is too large for animation (usually due to performance issues).voidsetPercentComplete(double percentComplete)Callback from our animator.protected voidupdateOpacity(double percentComplete)- 
Methods inherited from class ghidra.graph.job.AbstractAnimatorJobcanShortcut, dispose, execute, isFinished, setBusyListener, shortcut, stop, toString, trace
 
- 
 
- 
- 
- 
Field Detail- 
NORMAL_DURATIONprotected static final int NORMAL_DURATION - See Also:
- Constant Field Values
 
 - 
FAST_DURATIONprotected static final int FAST_DURATION - See Also:
- Constant Field Values
 
 - 
durationprotected int duration 
 - 
viewerprotected final GraphViewer<V extends VisualVertex,E extends VisualEdge<V>> viewer 
 - 
graphprotected final VisualGraph<V extends VisualVertex,E extends VisualEdge<V>> graph 
 - 
useAnimationprotected boolean useAnimation 
 
- 
 - 
Constructor Detail- 
AbstractGraphVisibilityTransitionJobprotected AbstractGraphVisibilityTransitionJob(GraphViewer<V,E> viewer, boolean useAnimation) 
 
- 
 - 
Method Detail- 
isTooBigToAnimateprotected boolean isTooBigToAnimate() Returns true if the graph is too large for animation (usually due to performance issues).- Returns:
- true if the graph is too large for animation
 
 - 
setPercentCompletepublic void setPercentComplete(double percentComplete) Callback from our animator.
 - 
createAnimatorprotected org.jdesktop.animation.timing.Animator createAnimator() - Specified by:
- createAnimatorin class- AbstractAnimatorJob
 
 - 
finishedprotected void finished() Description copied from class:AbstractAnimatorJobA callback given when this animator has run to completion. This will be called whether the animator is stopped prematurely or ends naturally.- Specified by:
- finishedin class- AbstractAnimatorJob
 
 - 
updateOpacityprotected void updateOpacity(double percentComplete) 
 
- 
 
-