public class ModelChangeEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
static int |
FEATURES_COMPUTED
Event type indicated that the feature values for the objects in this
model have been computed.
|
static int |
FLAG_EDGE_ADDED
Indicate that an edge was added to the model.
|
static int |
FLAG_EDGE_MODIFIED
Indicate that an edge has been modified.
|
static int |
FLAG_EDGE_REMOVED
Indicate that an edge was removed from the model.
|
static int |
FLAG_SPOT_ADDED
Indicate that a spot was added to the model.
|
static int |
FLAG_SPOT_FRAME_CHANGED
Indicate that a spot has changed of frame, and possible of position,
features, etc..
|
static int |
FLAG_SPOT_MODIFIED
Indicate a modification of the features of a spot.
|
static int |
FLAG_SPOT_REMOVED
Indicate that a spot was removed from the model.
|
static Map<Integer,String> |
flagsToString |
static int |
MODEL_MODIFIED
Event type indicating that model was modified, by adding, removing or
changing the feature of some spots, and/or adding or removing edges in
the tracks.
|
static int |
SPOTS_COMPUTED
Event type indicating that the spots of the model were computed, and
are now accessible through
Model.getSpots() . |
static int |
SPOTS_FILTERED
Event type indicating that the spots of the model were filtered.
|
static int |
TRACKS_COMPUTED
Event type indicating that the tracks of the model were computed.
|
static int |
TRACKS_VISIBILITY_CHANGED
Event type indicating that the tracks of the model had their
visibility changed.
|
source
Constructor and Description |
---|
ModelChangeEvent(Object source,
int eventID)
Create a new event, reflecting a change in a
Model . |
Modifier and Type | Method and Description |
---|---|
boolean |
addAllEdges(Collection<org.jgrapht.graph.DefaultWeightedEdge> lEdges) |
boolean |
addAllSpots(Collection<Spot> lSpots) |
boolean |
addEdge(org.jgrapht.graph.DefaultWeightedEdge edge) |
boolean |
addSpot(Spot spot) |
Integer |
getEdgeFlag(org.jgrapht.graph.DefaultWeightedEdge edge)
Returns the modification flag for the given edge affected by this event.
|
Set<org.jgrapht.graph.DefaultWeightedEdge> |
getEdges() |
int |
getEventID() |
Integer |
getFromFrame(Spot spot) |
Integer |
getSpotFlag(Spot spot)
Returns the modification flag for the given spot affected by this event.
|
Set<Spot> |
getSpots() |
Integer |
getToFrame(Spot spot) |
Set<Integer> |
getTrackUpdated() |
Integer |
putEdgeFlag(org.jgrapht.graph.DefaultWeightedEdge edge,
Integer flag) |
Integer |
putFromFrame(Spot spot,
Integer lFromFrame) |
Integer |
putSpotFlag(Spot spot,
Integer flag) |
Integer |
putToFrame(Spot spot,
Integer lToFrame) |
void |
setSource(Object source) |
void |
setTracksUpdated(Set<Integer> tracksToUpdate) |
String |
toString() |
getSource
public static final int FLAG_SPOT_ADDED
public static final int FLAG_SPOT_REMOVED
public static final int FLAG_SPOT_MODIFIED
public static final int FLAG_SPOT_FRAME_CHANGED
public static final int FLAG_EDGE_ADDED
public static final int FLAG_EDGE_REMOVED
public static final int FLAG_EDGE_MODIFIED
public static final int SPOTS_COMPUTED
Model.getSpots()
.public static final int SPOTS_FILTERED
public static final int TRACKS_COMPUTED
public static final int TRACKS_VISIBILITY_CHANGED
public static final int MODEL_MODIFIED
getSpots()
, getSpotFlag(Spot)
,
getFromFrame(Spot)
and getToFrame(Spot)
, and for the
tracks: getEdges()
and getEdgeFlag(DefaultWeightedEdge)
.public static final int FEATURES_COMPUTED
public int getEventID()
public boolean addAllSpots(Collection<Spot> lSpots)
public boolean addSpot(Spot spot)
public boolean addAllEdges(Collection<org.jgrapht.graph.DefaultWeightedEdge> lEdges)
public boolean addEdge(org.jgrapht.graph.DefaultWeightedEdge edge)
public Set<Spot> getSpots()
public Set<org.jgrapht.graph.DefaultWeightedEdge> getEdges()
public Integer getSpotFlag(Spot spot)
spot
- the spot to query.FLAG_SPOT_ADDED
,
FLAG_SPOT_MODIFIED
,
FLAG_SPOT_REMOVED
public Integer getEdgeFlag(org.jgrapht.graph.DefaultWeightedEdge edge)
edge
- the edge to query.FLAG_EDGE_ADDED
,
FLAG_EDGE_REMOVED
public void setSource(Object source)
public String toString()
toString
in class EventObject
Copyright © 2015–2021 Fiji. All rights reserved.