Constructor and Description |
---|
SelectionModel(Model parent) |
Modifier and Type | Method and Description |
---|---|
void |
addEdgeToSelection(Collection<org.jgrapht.graph.DefaultWeightedEdge> edges) |
void |
addEdgeToSelection(org.jgrapht.graph.DefaultWeightedEdge edge) |
boolean |
addSelectionChangeListener(SelectionChangeListener listener) |
void |
addSpotToSelection(Collection<Spot> spots) |
void |
addSpotToSelection(Spot spot) |
void |
clearEdgeSelection() |
void |
clearSelection() |
void |
clearSpotSelection() |
Set<org.jgrapht.graph.DefaultWeightedEdge> |
getEdgeSelection() |
List<SelectionChangeListener> |
getSelectionChangeListener() |
Set<Spot> |
getSpotSelection() |
void |
removeEdgeFromSelection(Collection<org.jgrapht.graph.DefaultWeightedEdge> edges) |
void |
removeEdgeFromSelection(org.jgrapht.graph.DefaultWeightedEdge edge) |
boolean |
removeSelectionChangeListener(SelectionChangeListener listener) |
void |
removeSpotFromSelection(Collection<Spot> spots) |
void |
removeSpotFromSelection(Spot spot) |
void |
selectTrack(Collection<Spot> spots,
Collection<org.jgrapht.graph.DefaultWeightedEdge> edges,
int direction)
Search and add all spots and links belonging to the same track(s) that of given
spots and
edges to current selection. |
public SelectionModel(Model parent)
public boolean addSelectionChangeListener(SelectionChangeListener listener)
public boolean removeSelectionChangeListener(SelectionChangeListener listener)
public List<SelectionChangeListener> getSelectionChangeListener()
public void clearSelection()
public void clearSpotSelection()
public void clearEdgeSelection()
public void addSpotToSelection(Spot spot)
public void removeSpotFromSelection(Spot spot)
public void addSpotToSelection(Collection<Spot> spots)
public void removeSpotFromSelection(Collection<Spot> spots)
public void addEdgeToSelection(org.jgrapht.graph.DefaultWeightedEdge edge)
public void removeEdgeFromSelection(org.jgrapht.graph.DefaultWeightedEdge edge)
public void addEdgeToSelection(Collection<org.jgrapht.graph.DefaultWeightedEdge> edges)
public void removeEdgeFromSelection(Collection<org.jgrapht.graph.DefaultWeightedEdge> edges)
public Set<org.jgrapht.graph.DefaultWeightedEdge> getEdgeSelection()
public void selectTrack(Collection<Spot> spots, Collection<org.jgrapht.graph.DefaultWeightedEdge> edges, int direction)
spots
and
edges
to current selection. A direction
parameter allow specifying
whether we should include only parts upwards in time, downwards in time or all the way through.spots
- the spots to include in searchedges
- the edges to include in searchdirection
- the direction to go when searching. Positive integers will result in searching
upwards in time, negative integers downwards in time and 0 all the way through.Copyright © 2015–2021 Fiji. All rights reserved.