Package fr.igred.omero.repository
Class ChannelWrapper
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
ConstructorDescriptionChannelWrapper
(ChannelData channel) Constructor of the class ChannelWrapper. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the ChannelData contained.int
getAlpha()
Gets the sRGB alpha value of the channel.int
getBlue()
Gets the sRGB blue value of the channel.Returns the label of the channel.getColor()
Gets the original channel color.int
getGreen()
Gets the sRGB green value of the channel.int
getIndex()
Returns the channel index.getName()
Returns the name of the channel.int
getRed()
Gets the sRGB red value of the channel.boolean
hasRGBA()
Returns whether the channel contains all the RGBA values or not.void
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, getUpdated, saveAndUpdate, toString, wrap, wrap
-
Constructor Details
-
ChannelWrapper
Constructor of the class ChannelWrapper.- Parameters:
channel
- The ChannelData to wrap in the ChannelWrapper.
-
-
Method Details
-
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
Returns the label of the channel.Following the specification: Name→Fluor→Emission wavelength→index.
- Returns:
- See above.
-
getName
Returns the name of the channel.- Returns:
- See above.
-
setName
Sets the name of the channel.- Parameters:
name
- The name of the channel.
-
getColor
Gets the original channel color. Defaults toColor.WHITE
if 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.
-