Class RouterWithProgress

java.lang.Object
org.adaptagrams.Router
org.vanted.plugins.layout.adaptagrams.edgerouting.RouterWithProgress

public class RouterWithProgress
extends org.adaptagrams.Router
Author:
Tobias Czauderna
  • Constructor Summary

    Constructors
    Constructor Description
    RouterWithProgress​(long arg0)  
    RouterWithProgress​(long arg0, boolean arg1)  
    RouterWithProgress​(long arg0, boolean arg1, BackgroundTaskStatusProviderSupportingExternalCall status)  
    RouterWithProgress​(long arg0, BackgroundTaskStatusProviderSupportingExternalCall status)  
  • Method Summary

    Modifier and Type Method Description
    boolean shouldContinueTransactionWithProgress​(long elapsedTime, long phaseNumber, long totalPhases, double proportion)
    This method gets called from the native Adaptagrams library to provide routing progress information.

    Methods inherited from class org.adaptagrams.Router

    attachedConns, attachedShapes, debugHandler, delete, deleteCluster, deleteConnector, deleteJunction, deleteShape, destroyOrthogonalVisGraph, existsCrossings, existsCrossings, existsInvalidOrthogonalPaths, existsOrthogonalFixedSegmentOverlap, existsOrthogonalFixedSegmentOverlap, existsOrthogonalSegmentOverlap, existsOrthogonalSegmentOverlap, existsOrthogonalTouchingPaths, generateContains, getClusteredRouting, getClusterRefs, getConnRefs, getContains, getEnclosingClusters, getIgnoreRegions, getInvisGraph, getInvisibilityGrph, getM_obstacles, getPartialFeedback, getPartialTime, getRubberBandRouting, getSelectiveReroute, getSimpleRouting, getSt_checked_edges, getUseLeesAlgorithm, getVertices, getVisGraph, getVisOrthogGraph, hyperedgeRerouter, improveOrthogonalTopology, isInCrossingPenaltyReroutingStage, markAllObstaclesAsMoved, markPolylineConnectorsNeedingReroutingForDeletedObstacle, moveJunction, moveJunction, moveShape, moveShape, moveShape, newAndDeletedObjectListsFromHyperedgeImprovement, newObjectId, objectIdIsUnused, outputDiagramSVG, outputDiagramSVG, outputDiagramSVG, outputInstanceToSVG, outputInstanceToSVG, performContinuationCheck, printInfo, processActions, processTransaction, regenerateStaticBuiltGraph, registerSettingsChange, routingOption, routingParameter, setClusteredRouting, setClusterRefs, setConnRefs, setContains, setDebugHandler, setEnclosingClusters, setIgnoreRegions, setInvisGraph, setInvisibilityGrph, setM_obstacles, setPartialFeedback, setPartialTime, setRoutingOption, setRoutingParameter, setRoutingParameter, setRoutingPenalty, setRoutingPenalty, setRubberBandRouting, setSelectiveReroute, setSimpleRouting, setSt_checked_edges, setStaticGraphInvalidated, setTopologyAddon, setTransactionUse, setUseLeesAlgorithm, setVertices, setVisGraph, setVisOrthogGraph, shapeContainingPoint, swigReleaseOwnership, swigTakeOwnership, transactionUse, validConnType, validConnType

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RouterWithProgress

      public RouterWithProgress​(long arg0)
      Parameters:
      arg0 -
    • RouterWithProgress

      public RouterWithProgress​(long arg0, boolean arg1)
      Parameters:
      arg0 -
      arg1 -
    • RouterWithProgress

      public RouterWithProgress​(long arg0, BackgroundTaskStatusProviderSupportingExternalCall status)
      Parameters:
      arg0 -
      status - BackgroundTaskStatusProviderSupportingExternalCall
    • RouterWithProgress

      public RouterWithProgress​(long arg0, boolean arg1, BackgroundTaskStatusProviderSupportingExternalCall status)
      Parameters:
      arg0 -
      arg1 -
      status - BackgroundTaskStatusProviderSupportingExternalCall
  • Method Details

    • shouldContinueTransactionWithProgress

      public boolean shouldContinueTransactionWithProgress​(long elapsedTime, long phaseNumber, long totalPhases, double proportion)
      This method gets called from the native Adaptagrams library to provide routing progress information. Sets the status text and the progress bar of the BackgroundTaskStatusProviderSupportingExternalCall components. Sets logger information.
      Overrides:
      shouldContinueTransactionWithProgress in class org.adaptagrams.Router
      Parameters:
      elapsedTime - time elapsed since start of routing
      phaseNumber - phase number
      totalPhases - total number of phases
      proportion - routing progress (0...1)
      Returns:
      true (routing should continue) or false (routing should stop)