@Transactional public class RenderingSettingsImpl extends AbstractLevel2Service implements IRenderingSettings, java.io.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 |
---|---|
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 IObject> |
applySettingsToSet(long from,
java.lang.Class<T> klass,
java.util.Set<java.lang.Long> nodeIds)
Implemented as specified by the
IRenderingSettings I/F. |
RenderingDef |
createNewRenderingDef(Pixels pixels)
Implemented as specified by the
IRenderingSettings I/F |
RenderingDef |
getRenderingSettings(long pixelsId)
Implemented as specified by the
IRenderingSettings I/F |
java.lang.Class<? extends ServiceInterface> |
getServiceInterface()
Returns the interface this implementation is for.
|
void |
resetDefaults(RenderingDef def,
Pixels pixels)
Implemented as specified by the
IRenderingSettings I/F |
<T extends IObject> |
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 IObject> |
resetDefaultsInSet(java.lang.Class<T> klass,
java.util.Set<java.lang.Long> nodeIds)
Implemented as specified by the
IRenderingSettings I/F. |
RenderingDef |
resetDefaultsNoSave(RenderingDef def,
Pixels pixels)
Implemented as specified by the
IRenderingSettings I/F |
<T extends IObject> |
resetMinMaxInSet(java.lang.Class<T> klass,
java.util.Set<java.lang.Long> nodeIds)
Implemented as specified by the
IRenderingSettings I/F. |
boolean |
sanityCheckPixels(Pixels pFrom,
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 IObject> |
setOriginalSettingsInSet(java.lang.Class<T> klass,
java.util.Set<java.lang.Long> nodeIds)
Implemented as specified by the
IRenderingSettings I/F. |
void |
setPixelsData(PixelsService dataService)
Sets injector.
|
void |
setPixelsMetadata(IPixels metaService)
Sets injector.
|
void |
setRawPixelsStore(RawPixelsStore rawPixelsStore)
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(Pixels pFrom, 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 void setRawPixelsStore(RawPixelsStore rawPixelsStore)
rawPixelsStore
- The value to set.public java.lang.Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface
in interface SelfConfigurableService
SelfConfigurableService.getServiceInterface()
public <T extends 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)
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.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.applySettingsToSet(long, Class, Set)
public java.util.Map<java.lang.Boolean,java.util.List<java.lang.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 java.util.Map<java.lang.Boolean,java.util.List<java.lang.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 java.util.Map<java.lang.Boolean,java.util.List<java.lang.Long>> applySettingsToImages(long from, java.util.List<java.lang.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 RenderingDef getRenderingSettings(long pixelsId)
IRenderingSettings
I/FgetRenderingSettings
in interface IRenderingSettings
pixelsId
- The Id of the Pixels
IRenderingSettings.getRenderingSettings(long)
public RenderingDef createNewRenderingDef(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(RenderingDef def, 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 RenderingDef resetDefaultsNoSave(RenderingDef def, 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 java.util.Set<java.lang.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 IObject> java.util.Set<java.lang.Long> resetDefaultsInSet(java.lang.Class<T> klass, java.util.Set<java.lang.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 IObject> java.util.Set<java.lang.Long> resetDefaultsByOwnerInSet(java.lang.Class<T> klass, java.util.Set<java.lang.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 IObject> java.util.Set<java.lang.Long> resetMinMaxInSet(java.lang.Class<T> klass, java.util.Set<java.lang.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 java.util.Set<java.lang.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 IObject> java.util.Set<java.lang.Long> setOriginalSettingsInSet(java.lang.Class<T> klass, java.util.Set<java.lang.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.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.