public class ChannelPosition extends ImagePosition
Sequence
class.Modifier and Type | Field and Description |
---|---|
static char |
C_ID_0 |
static char |
C_ID_1 |
T_ID, Z_ID
Constructor and Description |
---|
ChannelPosition() |
ChannelPosition(ChannelPosition cp) |
ChannelPosition(int t,
int z,
int c) |
Modifier and Type | Method and Description |
---|---|
int |
alternateCompareTo(ChannelPosition cp)
Compare to another BandPosition with following priority C -> T -> Z
|
int |
compareTo(ImagePosition o)
Compare to another ImagePosition with following priority T -> Z -> C
|
void |
copyFrom(ChannelPosition cp) |
int |
get(char ident) |
char |
getAlternateFirstEmptyPos()
Return first undefined position with following priority C -> T -> Z
|
char |
getAlternateLastEmptyPos()
Return last undefined position with following priority Z -> T -> C
|
int |
getC() |
char |
getFirstEmptyPos()
Return first undefined position with following priority T -> Z -> C
|
char |
getLastEmptyPos()
Return last undefined position with following priority C -> Z -> T
|
boolean |
isCUndefined() |
boolean |
isSamePos(ChannelPosition cp,
char posIdent) |
boolean |
isUndefined() |
boolean |
isValidIdent(char ident) |
static boolean |
isValidIdentStatic(char ident) |
void |
set(int t,
int z,
int c) |
void |
setC(int c) |
void |
switchLeft() |
void |
switchRight() |
copyFrom, getT, getZ, isSamePos, isTUndefined, isZUndefined, set, setT, setZ
public static final char C_ID_0
public static final char C_ID_1
public ChannelPosition(int t, int z, int c)
public ChannelPosition(ChannelPosition cp)
public ChannelPosition()
public void copyFrom(ChannelPosition cp)
public void switchLeft()
switchLeft
in class ImagePosition
public void switchRight()
switchRight
in class ImagePosition
public int getC()
public void setC(int c)
c
- the c to setpublic void set(int t, int z, int c)
public int get(char ident)
get
in class ImagePosition
public static boolean isValidIdentStatic(char ident)
public boolean isValidIdent(char ident)
isValidIdent
in class ImagePosition
public boolean isCUndefined()
public boolean isUndefined()
isUndefined
in class ImagePosition
public char getAlternateFirstEmptyPos()
public char getFirstEmptyPos()
getFirstEmptyPos
in class ImagePosition
public char getAlternateLastEmptyPos()
public char getLastEmptyPos()
getLastEmptyPos
in class ImagePosition
public boolean isSamePos(ChannelPosition cp, char posIdent)
public int compareTo(ImagePosition o)
compareTo
in interface java.lang.Comparable<ImagePosition>
compareTo
in class ImagePosition
public int alternateCompareTo(ChannelPosition cp)