Package bdv.util

Class PlaceHolderOverlayInfo

    • Constructor Detail

      • PlaceHolderOverlayInfo

        public PlaceHolderOverlayInfo​(ViewerPanel viewer,
                                      SourceAndConverter<?> source,
                                      ConverterSetup converterSetup)
        Parameters:
        viewer -
        source - used for determining visibility.
        converterSetup -
    • Method Detail

      • isVisible

        public boolean isVisible()
      • 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.
      • visibilityChangeListeners

        public org.scijava.listeners.Listeners<PlaceHolderOverlayInfo.VisibilityChangeListener> visibilityChangeListeners()
        Register VisibilityChangeListeners, that will be notified when the visibility of the source represented by this PlaceHolderOverlayInfo changes.
      • addVisibilityChangeListener

        @Deprecated
        public boolean addVisibilityChangeListener​(PlaceHolderOverlayInfo.VisibilityChangeListener listener)
        Deprecated.
        Use visibilityChangeListeners().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:
        true if the listener was successfully registered. false if it was already registered.
      • removeVisibilityChangeListener

        @Deprecated
        public boolean removeVisibilityChangeListener​(PlaceHolderOverlayInfo.VisibilityChangeListener listener)
        Deprecated.
        Use visibilityChangeListeners().remove(listener) instead.
        Removes the specified listener.
        Parameters:
        listener - the listener to remove.
        Returns:
        true if the listener was present in the listeners of this model and was successfully removed.