Package ome.logic

Class RenderingSettingsImpl

  • All Implemented Interfaces:
    java.io.Serializable, ome.api.IRenderingSettings, ome.api.ServiceInterface, ome.system.SelfConfigurableService

    @Transactional
    public class RenderingSettingsImpl
    extends AbstractLevel2Service
    implements ome.api.IRenderingSettings, java.io.Serializable
    Implementation of the IRenderingSettings I/F.
    Since:
    OME3.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.Boolean,​java.util.List<java.lang.Long>> applySettingsToDataset​(long from, long to)
      Implemented as specified by the IRenderingSettings I/F.
      boolean applySettingsToImage​(long from, long to)
      Implemented as specified by the IRenderingSettings I/F
      java.util.Map<java.lang.Boolean,​java.util.List<java.lang.Long>> applySettingsToImages​(long from, java.util.List<java.lang.Long> nodeIds)
      Implemented as specified by the IRenderingSettings I/F
      boolean applySettingsToPixels​(long from, long to)
      Implemented as specified by the IRenderingSettings I/F
      java.util.Map<java.lang.Boolean,​java.util.List<java.lang.Long>> applySettingsToProject​(long from, long to)
      Implemented as specified by the IRenderingSettings I/F.
      <T extends ome.model.IObject>
      java.util.Map<java.lang.Boolean,​java.util.List<java.lang.Long>>
      applySettingsToSet​(long from, java.lang.Class<T> klass, java.util.Set<java.lang.Long> nodeIds)
      Implemented as specified by the IRenderingSettings I/F.
      ome.model.display.RenderingDef createNewRenderingDef​(ome.model.core.Pixels pixels)
      Implemented as specified by the IRenderingSettings I/F
      ome.model.display.RenderingDef getRenderingSettings​(long pixelsId)
      Implemented as specified by the IRenderingSettings I/F
      java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
      Returns the interface this implementation is for.
      void resetDefaults​(ome.model.display.RenderingDef def, ome.model.core.Pixels pixels)
      Implemented as specified by the IRenderingSettings I/F
      <T extends ome.model.IObject>
      java.util.Set<java.lang.Long>
      resetDefaultsByOwnerInSet​(java.lang.Class<T> klass, java.util.Set<java.lang.Long> nodeIds)
      Implemented as specified by the IRenderingSettings I/F.
      void resetDefaultsForPixels​(long to)
      Implemented as specified by the IRenderingSettings I/F.
      java.util.Set<java.lang.Long> resetDefaultsInDataset​(long to)
      Implemented as specified by the IRenderingSettings I/F.
      void resetDefaultsInImage​(long to)
      Implemented as specified by the IRenderingSettings I/F.
      <T extends ome.model.IObject>
      java.util.Set<java.lang.Long>
      resetDefaultsInSet​(java.lang.Class<T> klass, java.util.Set<java.lang.Long> nodeIds)
      Implemented as specified by the IRenderingSettings I/F.
      ome.model.display.RenderingDef resetDefaultsNoSave​(ome.model.display.RenderingDef def, ome.model.core.Pixels pixels)
      Implemented as specified by the IRenderingSettings I/F
      <T extends ome.model.IObject>
      java.util.Set<java.lang.Long>
      resetMinMaxInSet​(java.lang.Class<T> klass, java.util.Set<java.lang.Long> nodeIds)
      Implemented as specified by the IRenderingSettings I/F.
      boolean sanityCheckPixels​(ome.model.core.Pixels pFrom, ome.model.core.Pixels pTo)
      Implemented as specified by the IRenderingSettings I/F
      void setOriginalSettingsForPixels​(long to)
      Implemented as specified by the IRenderingSettings I/F.
      java.util.Set<java.lang.Long> setOriginalSettingsInDataset​(long to)
      Implemented as specified by the IRenderingSettings I/F.
      void setOriginalSettingsInImage​(long to)
      Implemented as specified by the IRenderingSettings I/F.
      <T extends ome.model.IObject>
      java.util.Set<java.lang.Long>
      setOriginalSettingsInSet​(java.lang.Class<T> klass, java.util.Set<java.lang.Long> nodeIds)
      Implemented as specified by the IRenderingSettings I/F.
      void setPixelsData​(ome.io.nio.PixelsService dataService)
      Sets injector.
      void setPixelsMetadata​(ome.api.IPixels metaService)
      Sets injector.
      void setRawPixelsStore​(ome.api.RawPixelsStore rawPixelsStore)
      Sets injector.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EPSILON

        public static final double EPSILON
        The value used to compare double and float.
        See Also:
        Constant Field Values
      • pixelsData

        protected transient ome.io.nio.PixelsService pixelsData
        Reference to the service used to retrieve the pixels data.
      • pixelsMetadata

        protected transient ome.api.IPixels pixelsMetadata
        Reference to the service used to retrieve the pixels metadata.
    • Constructor Detail

      • RenderingSettingsImpl

        public RenderingSettingsImpl()
    • Method Detail

      • sanityCheckPixels

        public boolean sanityCheckPixels​(ome.model.core.Pixels pFrom,
                                         ome.model.core.Pixels pTo)
        Implemented as specified by the IRenderingSettings I/F
        Specified by:
        sanityCheckPixels in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.sanityCheckPixels(Pixels, Pixels)
      • setPixelsMetadata

        public void setPixelsMetadata​(ome.api.IPixels metaService)
        Sets injector. For use during configuration. Can only be called once.
        Parameters:
        metaService - The value to set.
      • setPixelsData

        public void setPixelsData​(ome.io.nio.PixelsService dataService)
        Sets injector. For use during configuration. Can only be called once.
        Parameters:
        dataService - The value to set.
      • setRawPixelsStore

        public void setRawPixelsStore​(ome.api.RawPixelsStore rawPixelsStore)
        Sets injector. For use during configuration. Can only be called once.
        Parameters:
        rawPixelsStore - The value to set.
      • getServiceInterface

        public java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
        Returns the interface this implementation is for.
        Specified by:
        getServiceInterface in interface ome.system.SelfConfigurableService
        See Also:
        SelfConfigurableService.getServiceInterface()
      • applySettingsToSet

        public <T extends ome.model.IObject> java.util.Map<java.lang.Boolean,​java.util.List<java.lang.Long>> applySettingsToSet​(long from,
                                                                                                                                      java.lang.Class<T> klass,
                                                                                                                                      java.util.Set<java.lang.Long> nodeIds)
        Implemented as specified by the IRenderingSettings I/F.
        Specified by:
        applySettingsToSet in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.applySettingsToSet(long, Class, Set)
      • applySettingsToProject

        public java.util.Map<java.lang.Boolean,​java.util.List<java.lang.Long>> applySettingsToProject​(long from,
                                                                                                            long to)
        Implemented as specified by the IRenderingSettings I/F.
        Specified by:
        applySettingsToProject in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.applySettingsToProject(long, long)
      • applySettingsToDataset

        public java.util.Map<java.lang.Boolean,​java.util.List<java.lang.Long>> applySettingsToDataset​(long from,
                                                                                                            long to)
        Implemented as specified by the IRenderingSettings I/F.
        Specified by:
        applySettingsToDataset in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.applySettingsToDataset(long, long)
      • applySettingsToImage

        public boolean applySettingsToImage​(long from,
                                            long to)
        Implemented as specified by the IRenderingSettings I/F
        Specified by:
        applySettingsToImage in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.applySettingsToImage(long, long)
      • applySettingsToImages

        public java.util.Map<java.lang.Boolean,​java.util.List<java.lang.Long>> applySettingsToImages​(long from,
                                                                                                           java.util.List<java.lang.Long> nodeIds)
        Implemented as specified by the IRenderingSettings I/F
        Specified by:
        applySettingsToImages in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.applySettingsToImages(long, List)
      • applySettingsToPixels

        public boolean applySettingsToPixels​(long from,
                                             long to)
        Implemented as specified by the IRenderingSettings I/F
        Specified by:
        applySettingsToPixels in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.applySettingsToPixels(long, long)
      • getRenderingSettings

        public ome.model.display.RenderingDef getRenderingSettings​(long pixelsId)
        Implemented as specified by the IRenderingSettings I/F
        Specified by:
        getRenderingSettings in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.getRenderingSettings(long)
      • createNewRenderingDef

        public ome.model.display.RenderingDef createNewRenderingDef​(ome.model.core.Pixels pixels)
        Implemented as specified by the IRenderingSettings I/F
        Specified by:
        createNewRenderingDef in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.createNewRenderingDef(Pixels)
      • resetDefaults

        public void resetDefaults​(ome.model.display.RenderingDef def,
                                  ome.model.core.Pixels pixels)
        Implemented as specified by the IRenderingSettings I/F
        Specified by:
        resetDefaults in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.resetDefaults(RenderingDef, Pixels)
      • resetDefaultsNoSave

        public ome.model.display.RenderingDef resetDefaultsNoSave​(ome.model.display.RenderingDef def,
                                                                  ome.model.core.Pixels pixels)
        Implemented as specified by the IRenderingSettings I/F
        Specified by:
        resetDefaultsNoSave in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.resetDefaultsNoSave(RenderingDef, Pixels)
      • resetDefaultsInImage

        public void resetDefaultsInImage​(long to)
        Implemented as specified by the IRenderingSettings I/F.
        Specified by:
        resetDefaultsInImage in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.resetDefaultsInImage(long)
      • resetDefaultsForPixels

        public void resetDefaultsForPixels​(long to)
        Implemented as specified by the IRenderingSettings I/F.
        Specified by:
        resetDefaultsForPixels in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.resetDefaultsForPixels(long)
      • resetDefaultsInDataset

        public java.util.Set<java.lang.Long> resetDefaultsInDataset​(long to)
        Implemented as specified by the IRenderingSettings I/F.
        Specified by:
        resetDefaultsInDataset in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.resetDefaultsInDataset(long)
      • resetDefaultsInSet

        public <T extends ome.model.IObject> java.util.Set<java.lang.Long> resetDefaultsInSet​(java.lang.Class<T> klass,
                                                                                              java.util.Set<java.lang.Long> nodeIds)
        Implemented as specified by the IRenderingSettings I/F.
        Specified by:
        resetDefaultsInSet in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.resetDefaultsInSet(Class, Set)
      • resetDefaultsByOwnerInSet

        public <T extends ome.model.IObject> java.util.Set<java.lang.Long> resetDefaultsByOwnerInSet​(java.lang.Class<T> klass,
                                                                                                     java.util.Set<java.lang.Long> nodeIds)
        Implemented as specified by the IRenderingSettings I/F.
        Specified by:
        resetDefaultsByOwnerInSet in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.resetDefaultsInSet(Class, Set)
      • resetMinMaxInSet

        public <T extends ome.model.IObject> java.util.Set<java.lang.Long> resetMinMaxInSet​(java.lang.Class<T> klass,
                                                                                            java.util.Set<java.lang.Long> nodeIds)
        Implemented as specified by the IRenderingSettings I/F.
        Specified by:
        resetMinMaxInSet in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.resetMinMaxInSet(Class, Set)
      • setOriginalSettingsInImage

        public void setOriginalSettingsInImage​(long to)
        Implemented as specified by the IRenderingSettings I/F.
        Specified by:
        setOriginalSettingsInImage in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.setOriginalSettingsInImage(long)
      • setOriginalSettingsForPixels

        public void setOriginalSettingsForPixels​(long to)
        Implemented as specified by the IRenderingSettings I/F.
        Specified by:
        setOriginalSettingsForPixels in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.setOriginalSettingsForPixels(long)
      • setOriginalSettingsInDataset

        public java.util.Set<java.lang.Long> setOriginalSettingsInDataset​(long to)
        Implemented as specified by the IRenderingSettings I/F.
        Specified by:
        setOriginalSettingsInDataset in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.setOriginalSettingsInDataset(long)
      • setOriginalSettingsInSet

        public <T extends ome.model.IObject> java.util.Set<java.lang.Long> setOriginalSettingsInSet​(java.lang.Class<T> klass,
                                                                                                    java.util.Set<java.lang.Long> nodeIds)
        Implemented as specified by the IRenderingSettings I/F.
        Specified by:
        setOriginalSettingsInSet in interface ome.api.IRenderingSettings
        See Also:
        IRenderingSettings.setOriginalSettingsInSet(Class, Set)