Class DiagramRouterTask<T extends Entity>

java.lang.Object
java.util.concurrent.FutureTask<V>
javafx.concurrent.Task<Void>
com.wisecoders.dbs.diagram.model.DiagramRouterTask<T>
All Implemented Interfaces:
Runnable, Future<Void>, RunnableFuture<Void>, javafx.concurrent.Worker<Void>, javafx.event.EventTarget

public class DiagramRouterTask<T extends Entity> extends javafx.concurrent.Task<Void>
  • Property Summary

    Properties inherited from class javafx.concurrent.Task

    exception, message, onCancelled, onFailed, onRunning, onScheduled, onSucceeded, progress, running, state, title, totalWork, value, workDone
  • Nested Class Summary

    Nested classes/interfaces inherited from interface javafx.concurrent.Worker

    javafx.concurrent.Worker.State
  • Constructor Summary

    Constructors
    Constructor
    Description
    DiagramRouterTask(com.wisecoders.dbs.diagram.fx.FxAbstractDiagramPane<T> abstractDiagramPane, Diagram<T> diagram)
    Do the routing asynchronous.
    Do the routing synchronous.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Void
     
    protected void
     
    static boolean
    isValueBesideMiddleOf(double value, double distance)
     
    protected void
     

    Methods inherited from class javafx.concurrent.Task

    addEventFilter, addEventHandler, buildEventDispatchChain, cancel, cancel, cancelled, exceptionProperty, fireEvent, getException, getMessage, getOnCancelled, getOnFailed, getOnRunning, getOnScheduled, getOnSucceeded, getProgress, getState, getTitle, getTotalWork, getValue, getWorkDone, isRunning, messageProperty, onCancelledProperty, onFailedProperty, onRunningProperty, onScheduledProperty, onSucceededProperty, progressProperty, removeEventFilter, removeEventHandler, running, runningProperty, scheduled, setEventHandler, setOnCancelled, setOnFailed, setOnRunning, setOnScheduled, setOnSucceeded, stateProperty, titleProperty, totalWorkProperty, updateMessage, updateProgress, updateProgress, updateTitle, updateValue, valueProperty, workDoneProperty

    Methods inherited from class java.util.concurrent.FutureTask

    done, get, get, isCancelled, isDone, run, runAndReset, set, setException, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DiagramRouterTask

      public DiagramRouterTask(com.wisecoders.dbs.diagram.fx.FxAbstractDiagramPane<T> abstractDiagramPane, Diagram<T> diagram)
      Do the routing asynchronous. Repaint the diagramPane when is done.
      Parameters:
      abstractDiagramPane - to repaint
      diagram - to route
    • DiagramRouterTask

      public DiagramRouterTask(Diagram<T> diagram)
      Do the routing synchronous.
      Parameters:
      diagram - to route
  • Method Details

    • call

      protected Void call() throws Exception
      Specified by:
      call in class javafx.concurrent.Task<Void>
      Throws:
      Exception
    • succeeded

      protected void succeeded()
      Overrides:
      succeeded in class javafx.concurrent.Task<Void>
    • failed

      protected void failed()
      Overrides:
      failed in class javafx.concurrent.Task<Void>
    • isValueBesideMiddleOf

      public static boolean isValueBesideMiddleOf(double value, double distance)