- java.lang.Object
-
- bdv.util.PlaceHolderOverlayInfo
-
- All Implemented Interfaces:
TimePointListener,TransformListener<net.imglib2.realtransform.AffineTransform3D>,ViewerStateChangeListener
public final class PlaceHolderOverlayInfo extends Object implements TransformListener<net.imglib2.realtransform.AffineTransform3D>, TimePointListener, ViewerStateChangeListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePlaceHolderOverlayInfo.VisibilityChangeListener
-
Constructor Summary
Constructors Constructor Description PlaceHolderOverlayInfo(ViewerPanel viewer, SourceAndConverter<?> source, ConverterSetup converterSetup)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanaddVisibilityChangeListener(PlaceHolderOverlayInfo.VisibilityChangeListener listener)Deprecated.UsevisibilityChangeListeners().add(listener)instead.net.imglib2.type.numeric.ARGBTypegetColor()Get the color for this converter.doublegetDisplayRangeMax()Get the (smallest) source value that is mapped to the maximum of the target range.doublegetDisplayRangeMin()Get the (largest) source value that is mapped to the minimum of the target range.intgetTimePointIndex()voidgetViewerTransform(net.imglib2.realtransform.AffineTransform3D t)booleanisVisible()booleanremoveVisibilityChangeListener(PlaceHolderOverlayInfo.VisibilityChangeListener listener)Deprecated.UsevisibilityChangeListeners().remove(listener)instead.voidtimePointChanged(int timePointIndex)voidtransformChanged(net.imglib2.realtransform.AffineTransform3D t)voidviewerStateChanged(ViewerStateChange change)org.scijava.listeners.Listeners<PlaceHolderOverlayInfo.VisibilityChangeListener>visibilityChangeListeners()RegisterVisibilityChangeListeners, that will be notified when the visibility of the source represented by this PlaceHolderOverlayInfo changes.
-
-
-
Constructor Detail
-
PlaceHolderOverlayInfo
public PlaceHolderOverlayInfo(ViewerPanel viewer, SourceAndConverter<?> source, ConverterSetup converterSetup)
- Parameters:
viewer-source- used for determining visibility.converterSetup-
-
-
Method Detail
-
transformChanged
public void transformChanged(net.imglib2.realtransform.AffineTransform3D t)
- Specified by:
transformChangedin interfaceTransformListener<net.imglib2.realtransform.AffineTransform3D>
-
isVisible
public boolean isVisible()
-
getViewerTransform
public void getViewerTransform(net.imglib2.realtransform.AffineTransform3D t)
-
getTimePointIndex
public int getTimePointIndex()
-
getDisplayRangeMin
public double getDisplayRangeMin()
Get the (largest) source value that is mapped to the minimum of the target range.- Returns:
- source value that is mapped to the minimum of the target range.
-
getDisplayRangeMax
public double getDisplayRangeMax()
Get the (smallest) source value that is mapped to the maximum of the target range.- Returns:
- source value that is mapped to the maximum of the target range.
-
getColor
public net.imglib2.type.numeric.ARGBType getColor()
Get the color for this converter.- Returns:
- the color for this converter.
-
timePointChanged
public void timePointChanged(int timePointIndex)
- Specified by:
timePointChangedin interfaceTimePointListener
-
viewerStateChanged
public void viewerStateChanged(ViewerStateChange change)
- Specified by:
viewerStateChangedin interfaceViewerStateChangeListener
-
visibilityChangeListeners
public org.scijava.listeners.Listeners<PlaceHolderOverlayInfo.VisibilityChangeListener> visibilityChangeListeners()
RegisterVisibilityChangeListeners, that will be notified when the visibility of the source represented by this PlaceHolderOverlayInfo changes.
-
addVisibilityChangeListener
@Deprecated public boolean addVisibilityChangeListener(PlaceHolderOverlayInfo.VisibilityChangeListener listener)
Deprecated.UsevisibilityChangeListeners().add(listener)instead.Registers a VisibilityChangeListener, that will be notified when the visibility of the source represented by this PlaceHolderOverlayInfo changes.- Parameters:
listener- the listener to register.- Returns:
trueif the listener was successfully registered.falseif it was already registered.
-
removeVisibilityChangeListener
@Deprecated public boolean removeVisibilityChangeListener(PlaceHolderOverlayInfo.VisibilityChangeListener listener)
Deprecated.UsevisibilityChangeListeners().remove(listener)instead.Removes the specified listener.- Parameters:
listener- the listener to remove.- Returns:
trueif the listener was present in the listeners of this model and was successfully removed.
-
-