Package fr.igred.omero.core
Interface Channel
-
- All Superinterfaces:
RemoteObject
- All Known Implementing Classes:
ChannelWrapper
public interface Channel extends RemoteObject
Interface to handle Channel information on OMERO.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ChannelData
asDataObject()
Returns aChannelData
corresponding to the handled object.int
getAlpha()
Gets the sRGB alpha value of the channel.int
getBlue()
Gets the sRGB blue value of the channel.java.lang.String
getChannelLabeling()
Returns the label of the channel.default java.awt.Color
getColor()
Gets the original channel color.int
getGreen()
Gets the sRGB green value of the channel.int
getIndex()
Returns the channel index.java.lang.String
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
setName(java.lang.String name)
Sets the name of the channel.-
Methods inherited from interface fr.igred.omero.RemoteObject
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate
-
-
-
-
Method Detail
-
asDataObject
ChannelData asDataObject()
Returns aChannelData
corresponding to the handled object.- Specified by:
asDataObject
in interfaceRemoteObject
- Returns:
- See above.
-
hasRGBA
boolean hasRGBA()
Returns whether the channel contains all the RGBA values or not.- Returns:
- See above.
-
getIndex
int getIndex()
Returns the channel index.- Returns:
- See above.
-
getChannelLabeling
java.lang.String getChannelLabeling()
Returns the label of the channel.Following the specification: Name→Fluor→Emission wavelength→index.
- Returns:
- See above.
-
getName
java.lang.String getName()
Returns the name of the channel.- Returns:
- See above.
-
setName
void setName(java.lang.String name)
Sets the name of the channel.- Parameters:
name
- The name of the channel.
-
getColor
default java.awt.Color getColor()
Gets the original channel color. Defaults toColor.WHITE
if RGBA values are missing.- Returns:
- The original channel color.
-
getAlpha
int getAlpha()
Gets the sRGB alpha value of the channel.- Returns:
- See above.
-
getRed
int getRed()
Gets the sRGB red value of the channel.- Returns:
- See above.
-
getGreen
int getGreen()
Gets the sRGB green value of the channel.- Returns:
- See above.
-
getBlue
int getBlue()
Gets the sRGB blue value of the channel.- Returns:
- See above.
-
-