jfxtras.scene.layout.responsivepane.Unit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jfxtras-all Show documentation
Show all versions of jfxtras-all Show documentation
Miscellaneous components for JavaFX
The newest version!
package jfxtras.scene.layout.responsivepane;
enum Unit {
INCH("in"), CM("cm");
private Unit(String suffix){
this.suffix = suffix;
}
final String suffix;
public double toInches(double value) {
if (this.equals(CM)) {
return value * 0.393701;
}
return value;
}
}