Package omero.gateway.model
Class ChannelData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.ChannelData
-
public class ChannelData extends DataObject
The data that makes up an OME Channel along with links to its logical channel.- Since:
- 3.0-Beta4
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringANNOTATIONSIdentifies theChannel.ANNOTATIONLINKSfield.
-
Constructor Summary
Constructors Constructor Description ChannelData(int index)Creates a new instance.ChannelData(int index, omero.model.Channel channel)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetChannelLabeling()Returns the label of the channel.java.lang.StringgetContrastMethod()Returns the contrast method.omero.model.ContrastMethodgetContrastMethodAsEnum()Returns the contrast method enumeration value.omero.model.LengthgetEmissionWavelength(omero.model.enums.UnitsLength unit)Returns the emission wavelength of the channel.omero.model.LengthgetExcitationWavelength(omero.model.enums.UnitsLength unit)Returns the excitation wavelength of the channel.java.lang.StringgetFluor()Returns the Fluorophore used.doublegetGlobalMax()Returns the global maximum of the channel i.e.doublegetGlobalMin()Returns the global minimum of the channel i.e.java.lang.StringgetIllumination()Returns the illumination.omero.model.IlluminationgetIlluminationAsEnum()Returns the illumination enumeration value.intgetIndex()Returns the channel's index.java.lang.StringgetMode()Returns the mode.omero.model.AcquisitionModegetModeAsEnum()Returns the acquisition enumeration value.java.lang.StringgetName()Returns the name of the channel.doublegetNDFilter()Returns the ND filter wavelength of the channel.omero.model.LengthgetPinholeSize(omero.model.enums.UnitsLength unit)Returns the pin hole size of the channel.intgetPockelCell()Returns the Pockel cell settings.booleanhasStats()Returnstrueif the channel has some channel informationfalseotherwise.voidsetContrastMethod(omero.model.ContrastMethod contrastMethod)Sets the contrast method value.voidsetEmissionWavelength(omero.model.Length value)Sets the emission wavelength.voidsetExcitationWavelength(omero.model.Length value)Sets the excitation wavelength.voidsetFluor(java.lang.String value)Sets the fluor.voidsetIllumination(omero.model.Illumination illumination)Sets the illumination value.voidsetMode(omero.model.AcquisitionMode mode)Sets the acquisition mode value.voidsetName(java.lang.String name)Sets the name of the logical channel.voidsetNDFilter(double value)Sets the ND filter.voidsetPinholeSize(omero.model.Length value)Sets the pinhole size.voidsetPockelCell(int value)Sets the pockel cell.-
Methods inherited from class omero.gateway.model.DataObject
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlaneInfo, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getDetails, getGroupId, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setDirty, setId, setValue, setVersion, timeOfEvent, toString
-
-
-
-
Field Detail
-
ANNOTATIONS
public static final java.lang.String ANNOTATIONS
Identifies theChannel.ANNOTATIONLINKSfield.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChannelData
public ChannelData(int index)
Creates a new instance.- Parameters:
index- The index of the channel.
-
ChannelData
public ChannelData(int index, omero.model.Channel channel)Creates a new instance.- Parameters:
index- The index of the channel.channel- Back pointer to theChannelmodel object. Mustn't benull.- Throws:
java.lang.IllegalArgumentException- If the object isnull.
-
-
Method Detail
-
getIndex
public int getIndex()
Returns the channel's index.- Returns:
- See above.
-
getChannelLabeling
public java.lang.String getChannelLabeling()
Returns the label of the channel. Following the specification: Name→Fluor→Emission wavelength→index.- Returns:
- See above.
-
setName
public void setName(java.lang.String name)
Sets the name of the logical channel.- Parameters:
name- The name of the channel.
-
getName
public java.lang.String getName()
Returns the name of the channel.- Returns:
- See above.
-
getEmissionWavelength
public omero.model.Length getEmissionWavelength(omero.model.enums.UnitsLength unit) throws ome.model.units.BigResultReturns the emission wavelength of the channel. param unit The unit (may be null, in which case no conversion will be performed)- Returns:
- See above
- Throws:
ome.model.units.BigResult- If an arithmetic under-/overflow occurred
-
getExcitationWavelength
public omero.model.Length getExcitationWavelength(omero.model.enums.UnitsLength unit) throws ome.model.units.BigResultReturns the excitation wavelength of the channel.- Parameters:
unit- The unit (may be null, in which case no conversion will be performed)- Returns:
- See above
- Throws:
ome.model.units.BigResult- If an arithmetic under-/overflow occurred
-
getPinholeSize
public omero.model.Length getPinholeSize(omero.model.enums.UnitsLength unit) throws ome.model.units.BigResultReturns the pin hole size of the channel.- Parameters:
unit- The unit (may be null, in which case no conversion will be performed)- Returns:
- See above
- Throws:
ome.model.units.BigResult- If an arithmetic under-/overflow occurred
-
getNDFilter
public double getNDFilter()
Returns the ND filter wavelength of the channel.- Returns:
- See above
-
getFluor
public java.lang.String getFluor()
Returns the Fluorophore used.- Returns:
- See above.
-
getPockelCell
public int getPockelCell()
Returns the Pockel cell settings.- Returns:
- See above.
-
getIllumination
public java.lang.String getIllumination()
Returns the illumination.- Returns:
- See above.
-
getContrastMethod
public java.lang.String getContrastMethod()
Returns the contrast method.- Returns:
- See above.
-
getMode
public java.lang.String getMode()
Returns the mode.- Returns:
- See above.
-
getGlobalMin
public double getGlobalMin()
Returns the global minimum of the channel i.e. the minimum of all minima.- Returns:
- See above.
-
getGlobalMax
public double getGlobalMax()
Returns the global maximum of the channel i.e. the maximum of all maxima.- Returns:
- See above.
-
hasStats
public boolean hasStats()
Returnstrueif the channel has some channel informationfalseotherwise.- Returns:
- See above.
-
setPinholeSize
public void setPinholeSize(omero.model.Length value)
Sets the pinhole size.- Parameters:
value- The value to set.
-
setNDFilter
public void setNDFilter(double value)
Sets the ND filter.- Parameters:
value- The value to set.
-
setFluor
public void setFluor(java.lang.String value)
Sets the fluor.- Parameters:
value- The value to set.
-
setEmissionWavelength
public void setEmissionWavelength(omero.model.Length value)
Sets the emission wavelength.- Parameters:
value- The value to set.
-
setExcitationWavelength
public void setExcitationWavelength(omero.model.Length value)
Sets the excitation wavelength.- Parameters:
value- The value to set.
-
setPockelCell
public void setPockelCell(int value)
Sets the pockel cell.- Parameters:
value- The value to set.
-
setIllumination
public void setIllumination(omero.model.Illumination illumination)
Sets the illumination value.- Parameters:
illumination- The value to set.
-
setMode
public void setMode(omero.model.AcquisitionMode mode)
Sets the acquisition mode value.- Parameters:
mode- The value to set.
-
setContrastMethod
public void setContrastMethod(omero.model.ContrastMethod contrastMethod)
Sets the contrast method value.- Parameters:
contrastMethod- The value to set.
-
getModeAsEnum
public omero.model.AcquisitionMode getModeAsEnum()
Returns the acquisition enumeration value.- Returns:
- See above.
-
getIlluminationAsEnum
public omero.model.Illumination getIlluminationAsEnum()
Returns the illumination enumeration value.- Returns:
- See above.
-
getContrastMethodAsEnum
public omero.model.ContrastMethod getContrastMethodAsEnum()
Returns the contrast method enumeration value.- Returns:
- See above.
-
-