|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.logic.AbstractLevel2Service
ome.logic.RenderingSettingsImpl
@Transactional public class RenderingSettingsImpl
Implementation of the IRenderingSettings
I/F.
Field Summary | |
---|---|
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. |
Fields inherited from class ome.logic.AbstractLevel2Service |
---|
iQuery, iUpdate, metadata, queryFactory, sec |
Constructor Summary | |
---|---|
RenderingSettingsImpl()
|
Method Summary | ||
---|---|---|
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. |
|
|
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 |
|
|
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. |
|
|
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 |
|
|
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. |
|
|
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. |
Methods inherited from class ome.logic.AbstractLevel2Service |
---|
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setSecuritySystem, setUpdateService |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double EPSILON
protected transient PixelsService pixelsData
protected transient IPixels pixelsMetadata
Constructor Detail |
---|
public RenderingSettingsImpl()
Method Detail |
---|
public boolean sanityCheckPixels(ome.model.core.Pixels pFrom, ome.model.core.Pixels pTo)
IRenderingSettings
I/F
sanityCheckPixels
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/F
applySettingsToImage
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/F
applySettingsToImages
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/F
applySettingsToPixels
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/F
getRenderingSettings
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/F
createNewRenderingDef
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/F
resetDefaults
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/F
resetDefaultsNoSave
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.4-dbcbce5a-b4
Copyright © 2009 The University of Dundee. All Rights Reserved.