Package fr.igred.omero.core
Class ChannelWrapper
- java.lang.Object
-
- fr.igred.omero.ObjectWrapper<ChannelData>
-
- fr.igred.omero.core.ChannelWrapper
-
- All Implemented Interfaces:
Channel
,RemoteObject
public class ChannelWrapper extends ObjectWrapper<ChannelData> implements Channel
Class containing a ChannelData object.Wraps function calls to the ChannelData contained.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.ObjectWrapper
data
-
-
Constructor Summary
Constructors Constructor Description ChannelWrapper(ChannelData channel)
Constructor of the class ChannelWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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 class fr.igred.omero.ObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface fr.igred.omero.core.Channel
asDataObject, getColor
-
Methods inherited from interface fr.igred.omero.RemoteObject
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate
-
-
-
-
Constructor Detail
-
ChannelWrapper
public ChannelWrapper(ChannelData channel)
Constructor of the class ChannelWrapper.- Parameters:
channel
- The ChannelData to wrap in the ChannelWrapper.
-
-
Method Detail
-
hasRGBA
public boolean hasRGBA()
Returns whether the channel contains all the RGBA values or not.
-
getIndex
public int getIndex()
Returns the channel index.
-
getChannelLabeling
public java.lang.String getChannelLabeling()
Returns the label of the channel.Following the specification: Name→Fluor→Emission wavelength→index.
- Specified by:
getChannelLabeling
in interfaceChannel
- Returns:
- See above.
-
getName
public java.lang.String getName()
Returns the name of the channel.
-
setName
public void setName(java.lang.String name)
Sets the name of the channel.
-
getAlpha
public int getAlpha()
Gets the sRGB alpha value of the channel.
-
getRed
public int getRed()
Gets the sRGB red value of the channel.
-
getGreen
public int getGreen()
Gets the sRGB green value of the channel.
-
-