public class ModelTools extends Object
Model and SelectionModel.| Modifier and Type | Method and Description |
|---|---|
static Comparator<org.jgrapht.graph.DefaultWeightedEdge> |
featureEdgeComparator(String feature,
FeatureModel fm)
A comparator used to sort edges by ascending feature values.
|
static Comparator<Integer> |
featureTrackComparator(String feature,
FeatureModel fm)
A comparator used to sort tracks by ascending feature values.
|
static void |
linkSpots(Model model,
SelectionModel selectionModel)
Links all the spots in the selection, in time-forward order.
|
static void |
selectTrack(SelectionModel selectionModel)
Sets the content of the specified selection model to be the whole tracks
the selected spots belong to.
|
static void |
selectTrackDownward(SelectionModel selectionModel)
Sets the content of the specified selection model to be the whole tracks
the selected spots belong to, but searched for only forward in time
(downward).
|
static void |
selectTrackUpward(SelectionModel selectionModel)
Sets the content of the specified selection model to be the whole tracks
the selected spots belong to, but searched for only backward in time
(backward).
|
public static void selectTrack(SelectionModel selectionModel)
selectionModel - the SelectionModel that will be updated by this call.public static void selectTrackDownward(SelectionModel selectionModel)
selectionModel - the SelectionModel that will be updated by this call.public static void selectTrackUpward(SelectionModel selectionModel)
selectionModel - the SelectionModel that will be updated by this call.public static void linkSpots(Model model, SelectionModel selectionModel)
model - the model to modify.selectionModel - the selection that contains the spots to link.public static final Comparator<org.jgrapht.graph.DefaultWeightedEdge> featureEdgeComparator(String feature, FeatureModel fm)
feature - the feature to use for comparison. It is the caller
responsibility to ensure that all edges have the target
feature declared in the specified FeatureModel.fm - the FeatureModel to read feature values from.Comparator.public static final Comparator<Integer> featureTrackComparator(String feature, FeatureModel fm)
feature - the feature to use for comparison. It is the caller
responsibility to ensure that all tracks have the target
feature declared in the specified FeatureModel.fm - the FeatureModel to read feature values from.Comparator.Copyright © 2015–2021 Fiji. All rights reserved.