Home / Development / Documentation / 2.0.44 / ResolutionInput
TreeGraph 2
 


info.bioinfweb.treegraph.gui.dialogs
Class ResolutionInput

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.ResolutionInput

public class ResolutionInput
extends DecimalUnitInput


Field Summary
static float MM_PER_INCH
           
static String UNIT_PPI
           
static String UNIT_PPMM
           
 
Fields inherited from class info.webinsel.util.swing.DecimalInput
DOUBLE_FORMAT, FLOAT_FORMAT, INTEGER_FORMAT
 
Constructor Summary
ResolutionInput(String labelText, JPanel panel, int y)
           
 
Method Summary
protected  void customizeComboBox(JComboBox comboBox)
           
 float getPixelsPerMillimeter()
           
 float millimetersToPixels(float mm)
           
 float pixelsToMillimeters(float px)
           
static float ppiToPPM(float ppi)
           
static float ppmmToPPI(float ppmm)
           
 void setResolution(float value)
           
 
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_PPI

public static final String UNIT_PPI
See Also:
Constant Field Values

UNIT_PPMM

public static final String UNIT_PPMM
See Also:
Constant Field Values

MM_PER_INCH

public static final float MM_PER_INCH
See Also:
Constant Field Values
Constructor Detail

ResolutionInput

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

getPixelsPerMillimeter

public float getPixelsPerMillimeter()

setResolution

public void setResolution(float value)

customizeComboBox

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

ppiToPPM

public static float ppiToPPM(float ppi)

ppmmToPPI

public static float ppmmToPPI(float ppmm)

millimetersToPixels

public float millimetersToPixels(float mm)

pixelsToMillimeters

public float pixelsToMillimeters(float px)