Package fr.igred.omero.repository
Class ChannelWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<ChannelData>
-
- fr.igred.omero.repository.ChannelWrapper
-
public class ChannelWrapper extends GenericObjectWrapper<ChannelData>
Class containing a ChannelData object.Wraps function calls to the ChannelData contained.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
-
Constructor Summary
Constructors Constructor Description ChannelWrapper(ChannelData channel)Constructor of the class ChannelWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ChannelDataasChannelData()Deprecated.Returns the ChannelData contained.intgetAlpha()Gets the sRGB alpha value of the channel.intgetBlue()Gets the sRGB blue value of the channel.StringgetChannelLabeling()Returns the label of the channel.ColorgetColor()Gets the original channel color.intgetGreen()Gets the sRGB green value of the channel.intgetIndex()Returns the channel index.StringgetName()Returns the name of the channel.intgetRed()Gets the sRGB red value of the channel.booleanhasRGBA()Returns whether the channel contains all the RGBA values or not.voidsetName(String name)Sets the name of the channel.-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Constructor Detail
-
ChannelWrapper
public ChannelWrapper(ChannelData channel)
Constructor of the class ChannelWrapper.- Parameters:
channel- The ChannelData to wrap in the ChannelWrapper.
-
-
Method Detail
-
asChannelData
@Deprecated public ChannelData asChannelData()
Deprecated.Returns the ChannelData contained. UseGenericObjectWrapper.asDataObject()instead.- Returns:
- See above.
-
hasRGBA
public boolean hasRGBA()
Returns whether the channel contains all the RGBA values or not.- Returns:
- See above.
-
getIndex
public int getIndex()
Returns the channel index.- Returns:
- See above.
-
getChannelLabeling
public String getChannelLabeling()
Returns the label of the channel.Following the specification: Name→Fluor→Emission wavelength→index.
- Returns:
- See above.
-
getName
public String getName()
Returns the name of the channel.- Returns:
- See above.
-
setName
public void setName(String name)
Sets the name of the channel.- Parameters:
name- The name of the channel.
-
getColor
public Color getColor()
Gets the original channel color. Defaults toColor.WHITEif RGBA values are missing.- Returns:
- The original channel color.
-
getAlpha
public int getAlpha()
Gets the sRGB alpha value of the channel.- Returns:
- See above.
-
getRed
public int getRed()
Gets the sRGB red value of the channel.- Returns:
- See above.
-
getGreen
public int getGreen()
Gets the sRGB green value of the channel.- Returns:
- See above.
-
getBlue
public int getBlue()
Gets the sRGB blue value of the channel.- Returns:
- See above.
-
-