Home / Development / Documentation / 2.0.44 / DistanceValueInput
TreeGraph 2
 


info.bioinfweb.treegraph.gui.dialogs
Class DistanceValueInput

java.lang.Object
  extended by info.webinsel.util.swing.DecimalInput
      extended by info.bioinfweb.treegraph.gui.dialogs.DecimalUnitInput
          extended by info.bioinfweb.treegraph.gui.dialogs.DistanceValueInput

public class DistanceValueInput
extends DecimalUnitInput


Field Summary
static String UNIT_MILLIMETERS
           
static String UNIT_POINTS
           
 
Fields inherited from class info.webinsel.util.swing.DecimalInput
DOUBLE_FORMAT, FLOAT_FORMAT, INTEGER_FORMAT
 
Constructor Summary
DistanceValueInput(String labelText, JPanel panel, int y)
           
DistanceValueInput(String labelText, JPanel panel, int x, int y)
           
 
Method Summary
 void assignValueTo(DistanceValue distanceValue)
          Assigns the current value of the text-field to the given DistanceValue.
protected  void customizeComboBox(JComboBox comboBox)
           
 DistanceValue getValue()
           
 void setValue(DistanceValue distanceValue)
          Assigns the given value to the text-field.
 
Methods inherited from class info.bioinfweb.treegraph.gui.dialogs.DecimalUnitInput
getComboBox, setEnabled
 
Methods inherited from class info.webinsel.util.swing.DecimalInput
createLabelTable, getChangeMonitor, getDecimalFormat, getLabel, getTextField, parseDouble, parseFloat, parseInt, parseLong, setDecimalFormatStr, setValue, setValue, setValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNIT_MILLIMETERS

public static final String UNIT_MILLIMETERS
See Also:
Constant Field Values

UNIT_POINTS

public static final String UNIT_POINTS
See Also:
Constant Field Values
Constructor Detail

DistanceValueInput

public DistanceValueInput(String labelText,
                          JPanel panel,
                          int y)

DistanceValueInput

public DistanceValueInput(String labelText,
                          JPanel panel,
                          int x,
                          int y)
Method Detail

customizeComboBox

protected void customizeComboBox(JComboBox comboBox)
Specified by:
customizeComboBox in class DecimalUnitInput

setValue

public void setValue(DistanceValue distanceValue)
Assigns the given value to the text-field.

Parameters:
distanceValue -

assignValueTo

public void assignValueTo(DistanceValue distanceValue)
Assigns the current value of the text-field to the given DistanceValue.

Parameters:
distanceValue -

getValue

public DistanceValue getValue()