public static enum SWTTextDetector.Direction extends Enum<SWTTextDetector.Direction>
| Enum Constant and Description |
|---|
Both
Search for both light and dark text
|
DarkOnLight
Dark text against a lighter background
|
LightOnDark
Light text against a lighter background
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
detect(FImage image,
SWTTextDetector detector) |
static SWTTextDetector.Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SWTTextDetector.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SWTTextDetector.Direction DarkOnLight
public static final SWTTextDetector.Direction LightOnDark
public static final SWTTextDetector.Direction Both
public static SWTTextDetector.Direction[] values()
for (SWTTextDetector.Direction c : SWTTextDetector.Direction.values()) System.out.println(c);
public static SWTTextDetector.Direction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected abstract void detect(FImage image, SWTTextDetector detector)