|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<IntensityRelation>
com.xinapse.util.IntensityRelation
public enum IntensityRelation
An enumeration of possible intensity relationships.
| Nested Class Summary | |
|---|---|
static class |
IntensityRelation.IntensityRelationButton
A Button for setting an intensity relation. |
static class |
IntensityRelation.PanelGenerator
Class for generating JPanels for selecting an IntensityRelation. |
| Enum Constant Summary | |
|---|---|
HYPERINTENSE
A feature is hyperintense. |
|
HYPOINTENSE
A feature is hypointense. |
|
UNKNOWN
A feature may be hyperintense or hypointense. |
|
| Field Summary | |
|---|---|
static IntensityRelation |
DEFAULT_INTENSITY_RELATION
The default IntensityRelation. |
static org.apache.commons.cli.Option |
OPTION
An Option that can be used for command-line processing of an optional list of intensity relations. |
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Returns a String describing this IntensityRelation in detail. |
int |
getIconHeight()
|
int |
getIconWidth()
|
static IntensityRelation |
getInstance(java.lang.String s)
Returns the IntensityRelation specified by the argument. |
static void |
main(java.lang.String[] args)
Run the self-test of the IntensityRelation class. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
static IntensityRelation[] |
parseRelations(java.lang.String s)
Get an array of IntenstyRelations from a String comma-separated list of relations. |
static java.lang.String |
toPreferencesString(IntensityRelation[] relations)
Returns a String containing the array of IntensityRelations as a comma-separated list, suitable for saving the relations in the Preferences. |
java.lang.String |
toString()
Returns a short String describing this IntensityRelation. |
static IntensityRelation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static IntensityRelation[] |
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, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final IntensityRelation UNKNOWN
public static final IntensityRelation HYPERINTENSE
public static final IntensityRelation HYPOINTENSE
| Field Detail |
|---|
public static final IntensityRelation DEFAULT_INTENSITY_RELATION
public static final org.apache.commons.cli.Option OPTION
| Method Detail |
|---|
public static IntensityRelation[] values()
for (IntensityRelation c : IntensityRelation.values()) System.out.println(c);
public static IntensityRelation 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 final java.lang.String getDescription()
public java.lang.String toString()
toString in class java.lang.Enum<IntensityRelation>
public static IntensityRelation getInstance(java.lang.String s)
throws java.text.ParseException
s - a String describing the IntensityRelation.
java.text.ParseException
public static IntensityRelation[] parseRelations(java.lang.String s)
throws java.text.ParseException
s - a comma-separated list of relations, where entries with two adjacent commas
are interpreted as IntensityRelation.UNKNOWN.
java.text.ParseExceptionpublic static java.lang.String toPreferencesString(IntensityRelation[] relations)
public static void main(java.lang.String[] args)
args - ignored.public int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Icon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Icon
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||