edu.indiana.iucbrf.feature
Class LongStringFeature

java.lang.Object
  extended by edu.indiana.iucbrf.feature.AbstractFeature
      extended by edu.indiana.iucbrf.feature.StringFeature
          extended by edu.indiana.iucbrf.feature.LongStringFeature
All Implemented Interfaces:
Feature, SwingRepresentable, java.io.Serializable, java.lang.Comparable

public class LongStringFeature
extends StringFeature

A Feature with a value that is a long String. "Long" simply means that its feature input panel will use a JTextArea instead of a JTextField.

See Also:
Serialized Form

Field Summary
static FeatureDifferentiator DEFAULT_FEATURE_DIFFERENTIATOR
           
static int DEFAULT_VARIABLE_TYPE
           
static java.lang.reflect.Constructor STANDARD_CONSTRUCTOR
           
 
Fields inherited from class edu.indiana.iucbrf.feature.AbstractFeature
DEFAULT_CONSTRUCTED, NO_STANDARD_CONSTRUCTOR, value
 
Fields inherited from interface edu.indiana.iucbrf.feature.Feature
DEFAULT_FEATURE_DIFFERENTIATORS_BY_VARTYPE, FEATURE_VALUE_FONT, INTERVAL_VARIABLE, LABEL_WIDTH, NOMINAL_VARIABLE, ORDINAL_VARIABLE, OTHER_VARIABLE
 
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable
TITLE_FONT
 
Constructor Summary
LongStringFeature()
          Creates a new instance of LongStringFeature
LongStringFeature(Distribution distribution)
           
LongStringFeature(Feature other_feature)
           
LongStringFeature(java.lang.Object new_value)
           
LongStringFeature(java.lang.String new_value)
           
 
Method Summary
 int getDefaultVariableType()
          Get the variable type (for example, Feature.NOMINAL_VARIABLE, Feature.ORDINAL_VARIABLE, Feature.INTERVAL_VARIABLE, or Feature.OTHER_VARIABLE).
static FeatureInputPanel getFeatureInputPanel(int collectionType, Domain domain, FeatureKey featureKey, boolean allowUnknowns)
           
 javax.swing.JComponent toSwing(FeatureValueFormat formatter)
           
 javax.swing.JComponent toSwing(int detailLevel)
          Detail level may be ignored by implementations.
 javax.swing.JComponent toSwing(java.lang.String theString)
           
 
Methods inherited from class edu.indiana.iucbrf.feature.StringFeature
clone, compareTo, getTypeDescription, midpoint, setValue
 
Methods inherited from class edu.indiana.iucbrf.feature.AbstractFeature
adjust, checkAndGetDoubleValue, equals, getValue, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_FEATURE_DIFFERENTIATOR

public static final FeatureDifferentiator DEFAULT_FEATURE_DIFFERENTIATOR

DEFAULT_VARIABLE_TYPE

public static final int DEFAULT_VARIABLE_TYPE
See Also:
Constant Field Values

STANDARD_CONSTRUCTOR

public static final transient java.lang.reflect.Constructor STANDARD_CONSTRUCTOR
Constructor Detail

LongStringFeature

public LongStringFeature()
Creates a new instance of LongStringFeature


LongStringFeature

public LongStringFeature(Distribution distribution)

LongStringFeature

public LongStringFeature(java.lang.Object new_value)

LongStringFeature

public LongStringFeature(java.lang.String new_value)

LongStringFeature

public LongStringFeature(Feature other_feature)
Method Detail

getDefaultVariableType

public int getDefaultVariableType()
Description copied from interface: Feature
Get the variable type (for example, Feature.NOMINAL_VARIABLE, Feature.ORDINAL_VARIABLE, Feature.INTERVAL_VARIABLE, or Feature.OTHER_VARIABLE).

Specified by:
getDefaultVariableType in interface Feature
Overrides:
getDefaultVariableType in class StringFeature

getFeatureInputPanel

public static FeatureInputPanel getFeatureInputPanel(int collectionType,
                                                     Domain domain,
                                                     FeatureKey featureKey,
                                                     boolean allowUnknowns)

toSwing

public javax.swing.JComponent toSwing(int detailLevel)
Description copied from interface: SwingRepresentable
Detail level may be ignored by implementations. If used, the standard is for detailLevel 0 to be least detail, with higher values growing more detailed. 0 is least detail, higher numbers are more

Specified by:
toSwing in interface SwingRepresentable
Overrides:
toSwing in class AbstractFeature

toSwing

public javax.swing.JComponent toSwing(FeatureValueFormat formatter)
Specified by:
toSwing in interface Feature
Overrides:
toSwing in class AbstractFeature

toSwing

public javax.swing.JComponent toSwing(java.lang.String theString)
Overrides:
toSwing in class AbstractFeature