|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PixelType> org.shapelogic.imageprocessing.PixelType
public enum PixelType
Enum with types for annotating pixels. This is classification of all points on the foreground. How should these be ordered? I think maybe in priority sequence. And in numeric order too. What about the numbers? The last bit is a used bit I do not think that an enum is ordered in Java 6 What version of the color should I set? If I use the foreground as a guide then Let a 1 mean unused and set the unused
Field Summary | |
---|---|
byte |
color
|
Method Summary | |
---|---|
boolean |
equalsIgnore(byte input)
|
byte |
getColorUsed()
|
static PixelType |
getPixelType(byte input)
|
static boolean |
isUnused(byte input)
|
static boolean |
isUsed(byte input)
|
int |
nonNegativeId()
|
static byte |
toUnused(byte input)
Change a byte to unused version. |
static byte |
toUnused(PixelType input)
Change a byte to unused version. |
static byte |
toUsed(byte input)
Change a byte to used version. |
static byte |
toUsed(PixelType input)
|
static PixelType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PixelType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Enum Constant Detail |
---|
public static final PixelType BACKGROUND_POINT
public static final PixelType PIXEL_LINE_END
public static final PixelType PIXEL_SINGLE_POINT
public static final PixelType PIXEL_SOLID
public static final PixelType PIXEL_EXTRA_NEIGHBOR
public static final PixelType PIXEL_ON_LINE
public static final PixelType PIXEL_BORDER
public static final PixelType PIXEL_JUNCTION
public static final PixelType PIXEL_L_CORNER
public static final PixelType PIXEL_V_CORNER
public static final PixelType PIXEL_FOREGROUND_UNKNOWN
Field Detail |
---|
public final byte color
Method Detail |
---|
public static PixelType[] values()
for (PixelType c : PixelType.values()) System.out.println(c);
public static PixelType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static PixelType getPixelType(byte input)
public byte getColorUsed()
public boolean equalsIgnore(byte input)
public static byte toUnused(byte input)
public static byte toUnused(PixelType input)
public static byte toUsed(byte input)
public static byte toUsed(PixelType input)
public static boolean isUsed(byte input)
public static boolean isUnused(byte input)
public int nonNegativeId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |