|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<StructuringElement>
br.usp.ime.klava.segmentit.util.StructuringElement
public enum StructuringElement
Represents an square structuring element utilized in morphological operations.
Enum Constant Summary | |
---|---|
SQUARE_11x11
A square of width and height equal to 11 pixels. |
|
SQUARE_3x3
A square of width and height equal to 3 pixels. |
|
SQUARE_5x5
A square of width and height equal to 5 pixels. |
|
SQUARE_7x7
A square of width and height equal to 7 pixels. |
|
SQUARE_9x9
A square of width and height equal to 9 pixels. |
Method Summary | |
---|---|
int |
getSide()
Returns the size (width and height are equal) of this square structuring element. |
static StructuringElement |
select(java.awt.Component parent,
java.lang.String title)
Prompts the user to select a structuring element. |
java.lang.String |
toString()
Return a string representation of this structuring element in the form: <
side>x<side> |
static StructuringElement |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static StructuringElement[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final StructuringElement SQUARE_3x3
public static final StructuringElement SQUARE_5x5
public static final StructuringElement SQUARE_7x7
public static final StructuringElement SQUARE_9x9
public static final StructuringElement SQUARE_11x11
Method Detail |
---|
public static StructuringElement[] values()
for (StructuringElement c : StructuringElement.values()) System.out.println(c);
public static StructuringElement 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 int getSide()
public java.lang.String toString()
<
side>x<side>
toString
in class java.lang.Enum<StructuringElement>
public static StructuringElement select(java.awt.Component parent, java.lang.String title)
parent
- the Component
parent of the prompt windowtitle
- the title of the prompt window
null
if
the user canceled the selection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |