public class HyperStackDisplayer extends AbstractTrackMateModelView
Modifier and Type | Field and Description |
---|---|
protected ij.ImagePlus |
imp |
static String |
KEY |
protected SpotOverlay |
spotOverlay |
protected TrackOverlay |
trackOverlay |
displaySettings, model, selectionModel
DEFAULT_COLOR_MAP, DEFAULT_DRAWING_DEPTH, DEFAULT_HIGHLIGHT_COLOR, DEFAULT_LIMIT_DRAWING_DEPTH, DEFAULT_SPOT_COLOR, DEFAULT_TRACK_COLOR, DEFAULT_TRACK_DISPLAY_DEPTH, DEFAULT_TRACK_DISPLAY_MODE, DEFAULT_UNASSIGNED_FEATURE_COLOR, DEFAULT_UNDEFINED_FEATURE_COLOR, KEY_COLOR, KEY_COLORMAP, KEY_DISPLAY_SPOT_NAMES, KEY_DRAWING_DEPTH, KEY_HIGHLIGHT_COLOR, KEY_LIMIT_DRAWING_DEPTH, KEY_SPOT_COLORING, KEY_SPOT_RADIUS_RATIO, KEY_SPOTS_VISIBLE, KEY_TRACK_COLORING, KEY_TRACK_DISPLAY_DEPTH, KEY_TRACK_DISPLAY_MODE, KEY_TRACKS_VISIBLE, TRACK_DISPLAY_MODE_DESCRIPTION, TRACK_DISPLAY_MODE_LOCAL, TRACK_DISPLAY_MODE_LOCAL_BACKWARD, TRACK_DISPLAY_MODE_LOCAL_BACKWARD_QUICK, TRACK_DISPLAY_MODE_LOCAL_FORWARD, TRACK_DISPLAY_MODE_LOCAL_FORWARD_QUICK, TRACK_DISPLAY_MODE_LOCAL_QUICK, TRACK_DISPLAY_MODE_SELECTION_ONLY, TRACK_DISPLAY_MODE_WHOLE
Constructor and Description |
---|
HyperStackDisplayer(Model model,
SelectionModel selectionModel) |
HyperStackDisplayer(Model model,
SelectionModel selectionModel,
ij.ImagePlus imp) |
Modifier and Type | Method and Description |
---|---|
void |
addOverlay(ij.gui.Roi overlay) |
void |
centerViewOn(Spot spot)
Centers the view on the given spot.
|
void |
clear()
Removes any overlay (for spots or tracks) from this displayer.
|
protected SpotOverlay |
createSpotOverlay()
Hook for subclassers.
|
protected TrackOverlay |
createTrackOverlay()
Hook for subclassers.
|
ij.ImagePlus |
getImp()
Exposes the
ImagePlus on which the model is drawn by this view. |
String |
getKey()
Returns the unique key that identifies this view.
|
SelectionModel |
getSelectionModel() |
void |
modelChanged(ModelChangeEvent event)
This notification is fired when a
Model has been changed. |
void |
refresh()
Refreshes the displayer display with current model.
|
void |
render()
Initializes this displayer and render it according to its concrete
implementation.
|
void |
selectionChanged(SelectionChangeEvent event)
This needs to be overriden for concrete implementation to display
selection.
|
void |
setDisplaySettings(String key,
Object value)
Set a display parameter.
|
getDisplaySettings, getDisplaySettings, getModel, initDisplaySettings
protected final ij.ImagePlus imp
protected SpotOverlay spotOverlay
protected TrackOverlay trackOverlay
public static final String KEY
public HyperStackDisplayer(Model model, SelectionModel selectionModel, ij.ImagePlus imp)
public HyperStackDisplayer(Model model, SelectionModel selectionModel)
protected SpotOverlay createSpotOverlay()
protected TrackOverlay createTrackOverlay()
public ij.ImagePlus getImp()
ImagePlus
on which the model is drawn by this view.public void modelChanged(ModelChangeEvent event)
ModelChangeListener
Model
has been changed.event
- the ModelChangeEvent
.public void selectionChanged(SelectionChangeEvent event)
AbstractTrackMateModelView
selectionChanged
in interface SelectionChangeListener
selectionChanged
in class AbstractTrackMateModelView
event
- the event that characterizes the change.public void centerViewOn(Spot spot)
TrackMateModelView
public void render()
TrackMateModelView
public void refresh()
TrackMateModelView
public void clear()
TrackMateModelView
public void addOverlay(ij.gui.Roi overlay)
public SelectionModel getSelectionModel()
public void setDisplaySettings(String key, Object value)
TrackMateModelView
setDisplaySettings
in interface TrackMateModelView
setDisplaySettings
in class AbstractTrackMateModelView
key
- the key of the parameter to change.value
- the value for the display parameterpublic String getKey()
TrackMateModelView
Careful: this key must be the same that for the
ViewFactory
that can instantiates this view. This is to
facilitate saving/loading.
Copyright © 2015–2019 Fiji. All rights reserved.