Package ghidra.graph.job
Class FitGraphToViewJob<V extends VisualVertex,E extends VisualEdge<V>>
- java.lang.Object
- 
- ghidra.graph.job.FitGraphToViewJob<V,E>
 
- 
- Type Parameters:
- V- the vertex type
- E- the edge type
 - All Implemented Interfaces:
- GraphJob
 
 public class FitGraphToViewJob<V extends VisualVertex,E extends VisualEdge<V>> extends java.lang.Object implements GraphJob A job to scale one or more viewers such that the contained graph will fit entirely inside the viewing area.
- 
- 
Constructor SummaryConstructors Constructor Description FitGraphToViewJob(edu.uci.ics.jung.visualization.VisualizationServer<V,E>... viewers)FitGraphToViewJob(edu.uci.ics.jung.visualization.VisualizationServer<V,E> viewer, boolean onlyResizeWhenTooBig)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanShortcut()Returns true if the job can be told to stop running, but to still perform any final work before being done.voiddispose()Call to immediately stop this job, ignoring any exceptions or state issues that arise.voidexecute(GraphJobListener listener)Tells this job to do its work.booleanisFinished()Returns true if this job has finished its workvoidshortcut()Tells this job to stop running, but to still perform any final work before being done.java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
canShortcutpublic boolean canShortcut() Description copied from interface:GraphJobReturns true if the job can be told to stop running, but to still perform any final work before being done.- Specified by:
- canShortcutin interface- GraphJob
- Returns:
- true if the job can be shortcut
 
 - 
executepublic void execute(GraphJobListener listener) Description copied from interface:GraphJobTells this job to do its work. This call will be on the Swing thread. It is required that the given listener be called on the Swing thread when the job is finished.
 - 
isFinishedpublic boolean isFinished() Description copied from interface:GraphJobReturns true if this job has finished its work- Specified by:
- isFinishedin interface- GraphJob
- Returns:
- true if this job has finished its work
 
 - 
shortcutpublic void shortcut() Description copied from interface:GraphJobTells this job to stop running, but to still perform any final work before being done.Note: if your job is multi-threaded, then you must make sure to end your thread and work before returning from this method. If that cannot be done in a timely manner, then your GraphJob.canShortcut()should return false.
 - 
disposepublic void dispose() Description copied from interface:GraphJobCall to immediately stop this job, ignoring any exceptions or state issues that arise.
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-