public class ChannelWrapper extends ObjectWrapper<ChannelData> implements Channel
Wraps function calls to the ChannelData contained.
data
Constructor and Description |
---|
ChannelWrapper(ChannelData channel)
Constructor of the class ChannelWrapper.
|
Modifier and Type | Method and Description |
---|---|
int |
getAlpha()
Gets the sRGB alpha value of the channel.
|
int |
getBlue()
Gets the sRGB blue value of the channel.
|
String |
getChannelLabeling()
Returns the label of the channel.
|
int |
getGreen()
Gets the sRGB green value of the channel.
|
int |
getIndex()
Returns the channel index.
|
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(String name)
Sets the name of the channel.
|
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asDataObject, getColor
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdate
public ChannelWrapper(ChannelData channel)
channel
- The ChannelData to wrap in the ChannelWrapper.public boolean hasRGBA()
public int getIndex()
public String getChannelLabeling()
Following the specification: Name→Fluor→Emission wavelength→index.
getChannelLabeling
in interface Channel
public String getName()
public void setName(String name)
public int getAlpha()
public int getRed()
public int getGreen()
Copyright © 2020–2023 GReD. All rights reserved.