Package org.cip4.lib.xjdf.util
Class Dimensions
java.lang.Object
org.cip4.lib.xjdf.util.Dimensions
Dimensions utility class providing conversion functionality.
-
Method Summary
Modifier and TypeMethodDescriptionstatic doubledtp2Mm(double dtp) Convert DTP-Points to Millimeter.static floatdtp2Mm(float dtp) Convert DTP-Points to Millimeter.static RectangleConvert DTP-Points to Millimeter.static ShapeConvert DTP-Points to Millimeter.static XYPairConvert DTP-Points to Millimeter.static doubleConvert DTP-Points String to Millimeter.static doublemm2Dtp(double millimeter) Convert Millimeter to DTP-Points.static floatmm2Dtp(float millimeter) Convert Millimeter to DTP-Points.static RectangleConvert Millimeter to DTP-Points.static ShapeConvert Millimeter to DTP-Points.static XYPairConvert Millimeter to DTP-Points.static Stringmm2DtpS(double millimeter) Convert Millimeter to DTP-Points String.
-
Method Details
-
mm2Dtp
Convert Millimeter to DTP-Points.- Parameters:
rectangleMm- Rectangle in millimeters.- Returns:
- Rectangle object in DTP-Points.
-
dtp2Mm
Convert DTP-Points to Millimeter.- Parameters:
rectangleDtp- Rectangle object in DTP-Pointse.- Returns:
- Rectangle object value in millimeters.
-
mm2Dtp
Convert Millimeter to DTP-Points.- Parameters:
xyPairMm- XYPair in millimeters.- Returns:
- XYPair object in DTP-Points.
-
dtp2Mm
Convert DTP-Points to Millimeter.- Parameters:
xyPairDtp- XYPair object in DTP-Points.- Returns:
- XYPair object value in millimeters.
-
mm2Dtp
Convert Millimeter to DTP-Points.- Parameters:
shapeMm- Shape in millimeters.- Returns:
- Shape object in DTP-Points.
-
dtp2Mm
Convert DTP-Points to Millimeter.- Parameters:
shapeDtp- Shape object in DTP-Points.- Returns:
- Shape object value in millimeters.
-
mm2Dtp
public static double mm2Dtp(double millimeter) Convert Millimeter to DTP-Points.- Parameters:
millimeter- Millimeter as double value.- Returns:
- Millimeter value in DTP-Points.
-
dtp2Mm
public static double dtp2Mm(double dtp) Convert DTP-Points to Millimeter.- Parameters:
dtp- DTP-Points as value.- Returns:
- DTP-Points value in Millimeter.
-
mm2Dtp
public static float mm2Dtp(float millimeter) Convert Millimeter to DTP-Points.- Parameters:
millimeter- Millimeter as double value.- Returns:
- Millimeter value in DTP-Points.
-
dtp2Mm
public static float dtp2Mm(float dtp) Convert DTP-Points to Millimeter.- Parameters:
dtp- DTP-Points as value.- Returns:
- DTP-Points value in Millimeter.
-
dtp2MmS
Convert DTP-Points String to Millimeter.- Parameters:
strDtp- DTP-Points as String.- Returns:
- DTP-Points value in Millimeter.
-
mm2DtpS
Convert Millimeter to DTP-Points String.- Parameters:
millimeter- Millimeter as double value.- Returns:
- Millimeter value in DTP-Points as String.
-