Class Length.LengthFactory<L extends Length>
java.lang.Object
de.xima.fc.common.graphdot.Length.LengthFactory<L>
- Type Parameters:
L- Type of the length.
- Enclosing class:
Length
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLengthFactory(double scaleInchesToIntrinsic, DoubleFunction<L> ctor) -
Method Summary
Modifier and TypeMethodDescriptionfromCentimeters(double centimeters) Creates a new length for the given value.fromDecimeters(double decimeters) Creates a new length for the given value.fromInches(double inches) Creates a new length for the given value.fromMillimeters(double millimeters) Creates a new length for the given value.fromPoints(double points) Creates a new length for the given value.
-
Constructor Details
-
LengthFactory
-
-
Method Details
-
fromCentimeters
Creates a new length for the given value.- Parameters:
centimeters- Length in centimeters.- Returns:
- A new length with the given value.
-
fromDecimeters
Creates a new length for the given value.- Parameters:
decimeters- Length in decimeters.- Returns:
- A new length with the given value.
-
fromInches
Creates a new length for the given value.- Parameters:
inches- Length in inches.- Returns:
- A new length with the given value.
-
fromMillimeters
Creates a new length for the given value.- Parameters:
millimeters- Length in millimeters.- Returns:
- A new length with the given value.
-
fromPoints
Creates a new length for the given value.- Parameters:
points- Length in points.- Returns:
- A new length with the given value.
-