info.bioinfweb.treegraph.gui.dialogs
Class ResolutionInput
java.lang.Object
info.webinsel.util.swing.DecimalInput
info.bioinfweb.treegraph.gui.dialogs.DecimalUnitInput
info.bioinfweb.treegraph.gui.dialogs.ResolutionInput
public class ResolutionInput
- extends DecimalUnitInput
Fields inherited from class info.webinsel.util.swing.DecimalInput |
DOUBLE_FORMAT, FLOAT_FORMAT, INTEGER_FORMAT |
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 |
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
ResolutionInput
public ResolutionInput(String labelText,
JPanel panel,
int y)
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)