@Transactional public class RenderingSettingsImpl extends AbstractLevel2Service implements IRenderingSettings, Serializable
IRenderingSettings
I/F.Modifier and Type | Field and Description |
---|---|
static double |
EPSILON
The value used to compare double and float.
|
protected PixelsService |
pixelsData
Reference to the service used to retrieve the pixels data.
|
protected IPixels |
pixelsMetadata
Reference to the service used to retrieve the pixels metadata.
|
iQuery, iUpdate, metadata, queryFactory, sec
Constructor and Description |
---|
RenderingSettingsImpl() |
Modifier and Type | Method and Description |
---|---|
Map<Boolean,List<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 |
Map<Boolean,List<Long>> |
applySettingsToImages(long from,
List<Long> nodeIds)
Implemented as specified by the
IRenderingSettings I/F |
boolean |
applySettingsToPixels(long from,
long to)
Implemented as specified by the
IRenderingSettings I/F |
Map<Boolean,List<Long>> |
applySettingsToProject(long from,
long to)
Implemented as specified by the
IRenderingSettings I/F. |
<T extends ome.model.IObject> |
applySettingsToSet(long from,
Class<T> klass,
Set<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 |
Class<? extends 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> |
resetDefaultsByOwnerInSet(Class<T> klass,
Set<Long> nodeIds)
Implemented as specified by the
IRenderingSettings I/F. |
void |
resetDefaultsForPixels(long to)
Implemented as specified by the
IRenderingSettings I/F. |
Set<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> |
resetDefaultsInSet(Class<T> klass,
Set<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> |
resetMinMaxInSet(Class<T> klass,
Set<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. |
Set<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> |
setOriginalSettingsInSet(Class<T> klass,
Set<Long> nodeIds)
Implemented as specified by the
IRenderingSettings I/F. |
void |
setPixelsData(PixelsService dataService)
Sets injector.
|
void |
setPixelsMetadata(IPixels metaService)
Sets injector.
|
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setSecuritySystem, setUpdateService
public static final double EPSILON
protected transient PixelsService pixelsData
protected transient IPixels pixelsMetadata
public boolean sanityCheckPixels(ome.model.core.Pixels pFrom, ome.model.core.Pixels pTo)
IRenderingSettings
I/FsanityCheckPixels
in interface IRenderingSettings
pFrom
- The pixels set to copy the settings from.pTo
- The pixels set to copy the settings to.IRenderingSettings.sanityCheckPixels(Pixels, Pixels)
public void setPixelsMetadata(IPixels metaService)
metaService
- The value to set.public void setPixelsData(PixelsService dataService)
dataService
- The value to set.public Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface
in interface SelfConfigurableService
SelfConfigurableService.getServiceInterface()
public <T extends ome.model.IObject> Map<Boolean,List<Long>> applySettingsToSet(long from, Class<T> klass, Set<Long> nodeIds)
IRenderingSettings
I/F.applySettingsToSet
in interface IRenderingSettings
T
- The type of object to copy to.from
- The Id of the pixels set to copy the rendering settings from.klass
- The type of nodes to handle.nodeIds
- Ids of the node type.IRenderingSettings.applySettingsToSet(long, Class, Set)
public Map<Boolean,List<Long>> applySettingsToProject(long from, long to)
IRenderingSettings
I/F.applySettingsToProject
in interface IRenderingSettings
from
- The Id of the pixels set to copy the rendering settings from.to
- The Id of the project container to apply settings to.TRUE
is a collection of images ID, the settings were successfully applied to.
The value of the FALSE
is a collection of images ID, the
settings could not be applied to.IRenderingSettings.applySettingsToProject(long, long)
public Map<Boolean,List<Long>> applySettingsToDataset(long from, long to)
IRenderingSettings
I/F.applySettingsToDataset
in interface IRenderingSettings
from
- The Id of the pixels set to copy the rendering settings from.to
- The Id of the dataset container to apply settings to.TRUE
is a collection of images ID, the settings were successfully applied to.
The value of the FALSE
is a collection of images ID, the
settings could not be applied to.IRenderingSettings.applySettingsToDataset(long, long)
public boolean applySettingsToImage(long from, long to)
IRenderingSettings
I/FapplySettingsToImage
in interface IRenderingSettings
from
- The Id of the pixels set to copy the rendering settings from.to
- The Id of the image container to apply settings to.true
if the settings were successfully applied,
false
otherwise.IRenderingSettings.applySettingsToImage(long, long)
public Map<Boolean,List<Long>> applySettingsToImages(long from, List<Long> nodeIds)
IRenderingSettings
I/FapplySettingsToImages
in interface IRenderingSettings
from
- The Id of the pixels set to copy the rendering settings from.nodeIds
- The Id of the image container to apply settings to.true
if the settings were successfully applied,
false
otherwise.IRenderingSettings.applySettingsToImages(long, List)
public boolean applySettingsToPixels(long from, long to)
IRenderingSettings
I/FapplySettingsToPixels
in interface IRenderingSettings
from
- The Id of the pixels set to copy the rendering settings from.to
- The Id of the pixels container to apply settings to.IRenderingSettings.applySettingsToPixels(long, long)
public ome.model.display.RenderingDef getRenderingSettings(long pixelsId)
IRenderingSettings
I/FgetRenderingSettings
in interface IRenderingSettings
pixelsId
- The Id of the Pixels
IRenderingSettings.getRenderingSettings(long)
public ome.model.display.RenderingDef createNewRenderingDef(ome.model.core.Pixels pixels)
IRenderingSettings
I/FcreateNewRenderingDef
in interface IRenderingSettings
pixels
- The Pixels set to link to the rendering definition.Pixels
has been unloaded.IRenderingSettings.createNewRenderingDef(Pixels)
public void resetDefaults(ome.model.display.RenderingDef def, ome.model.core.Pixels pixels)
IRenderingSettings
I/FresetDefaults
in interface IRenderingSettings
def
- A RenderingDef
to reset. It is expected that
def.pixels will be unloaded and that the actual linked Pixels set
will be provided in the pixels
argument.pixels
- The Pixels set for def
.IRenderingSettings.resetDefaults(RenderingDef, Pixels)
public ome.model.display.RenderingDef resetDefaultsNoSave(ome.model.display.RenderingDef def, ome.model.core.Pixels pixels)
IRenderingSettings
I/FresetDefaultsNoSave
in interface IRenderingSettings
def
- A RenderingDef
to reset. It is expected that
def.pixels will be unloaded and that the actual linked Pixels set
will be provided in the pixels
argument.pixels
- The Pixels set for def
.def
with the rendering settings reset.IRenderingSettings.resetDefaultsNoSave(RenderingDef, Pixels)
public void resetDefaultsInImage(long to)
IRenderingSettings
I/F.resetDefaultsInImage
in interface IRenderingSettings
to
- The Id of the Image
.IRenderingSettings.resetDefaultsInImage(long)
public void resetDefaultsForPixels(long to)
IRenderingSettings
I/F.resetDefaultsForPixels
in interface IRenderingSettings
to
- The Id of the Pixels
.IRenderingSettings.resetDefaultsForPixels(long)
public Set<Long> resetDefaultsInDataset(long to)
IRenderingSettings
I/F.resetDefaultsInDataset
in interface IRenderingSettings
to
- The Id of the DataSet
.Set
of image IDs that have had their
rendering settings reset.IRenderingSettings.resetDefaultsInDataset(long)
public <T extends ome.model.IObject> Set<Long> resetDefaultsInSet(Class<T> klass, Set<Long> nodeIds)
IRenderingSettings
I/F.resetDefaultsInSet
in interface IRenderingSettings
klass
- The type of nodes to handle.nodeIds
- Ids of the node type.Set
of image IDs that have had their
rendering settings reset.IRenderingSettings.resetDefaultsInSet(Class, Set)
public <T extends ome.model.IObject> Set<Long> resetDefaultsByOwnerInSet(Class<T> klass, Set<Long> nodeIds)
IRenderingSettings
I/F.resetDefaultsByOwnerInSet
in interface IRenderingSettings
klass
- The type of nodes to handle.nodeIds
- Ids of the node type.Set
of image IDs that have had their
rendering settings reset.IRenderingSettings.resetDefaultsInSet(Class, Set)
public <T extends ome.model.IObject> Set<Long> resetMinMaxInSet(Class<T> klass, Set<Long> nodeIds)
IRenderingSettings
I/F.resetMinMaxInSet
in interface IRenderingSettings
klass
- The type of nodes to handle.nodeIds
- Ids of the node type.Set
of image IDs that have had their
rendering settings reset.IRenderingSettings.resetMinMaxInSet(Class, Set)
public void setOriginalSettingsInImage(long to)
IRenderingSettings
I/F.setOriginalSettingsInImage
in interface IRenderingSettings
to
- The Id of the Image
.IRenderingSettings.setOriginalSettingsInImage(long)
public void setOriginalSettingsForPixels(long to)
IRenderingSettings
I/F.setOriginalSettingsForPixels
in interface IRenderingSettings
to
- The Id of the Pixels
set.IRenderingSettings.setOriginalSettingsForPixels(long)
public Set<Long> setOriginalSettingsInDataset(long to)
IRenderingSettings
I/F.setOriginalSettingsInDataset
in interface IRenderingSettings
to
- The id of the dataset to handle.Set
of image IDs that have had their
rendering settings reset.IRenderingSettings.setOriginalSettingsInDataset(long)
public <T extends ome.model.IObject> Set<Long> setOriginalSettingsInSet(Class<T> klass, Set<Long> nodeIds)
IRenderingSettings
I/F.setOriginalSettingsInSet
in interface IRenderingSettings
klass
- The type of nodes to handle.nodeIds
- Ids of the node type.Set
of image IDs that have had their
rendering settings reset.IRenderingSettings.setOriginalSettingsInSet(Class, Set)
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.