Package com.wisecoders.dbs.diagram.model
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
-
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
ConstructorsConstructorDescriptionDiagramRouterTask(com.wisecoders.dbs.diagram.fx.FxAbstractDiagramPane<T> abstractDiagramPane, Diagram<T> diagram) Do the routing asynchronous.DiagramRouterTask(Diagram<T> diagram) Do the routing synchronous. -
Method Summary
Modifier and TypeMethodDescriptionprotected Voidcall()protected voidfailed()static booleanisValueBesideMiddleOf(double value, double distance) protected voidMethods 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, workDonePropertyMethods inherited from class java.util.concurrent.FutureTask
done, get, get, isCancelled, isDone, run, runAndReset, set, setException, toString
-
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 repaintdiagram- to route
-
DiagramRouterTask
Do the routing synchronous.- Parameters:
diagram- to route
-
-
Method Details