Package de.xima.fc.common.graphdot
Class LengthList.LengthListFactory<L extends Length>
- java.lang.Object
-
- de.xima.fc.common.graphdot.LengthList.LengthListFactory<L>
-
- Type Parameters:
L
- Type of the length values in this list.
- Enclosing class:
- LengthList<L extends Length>
public static final class LengthList.LengthListFactory<L extends Length> extends Object
A factory for creatingLengthList
from values in a given unit.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LengthList<L>
fromCentimeters(double centimeters)
Creates a length list from a centimeter value.LengthList<L>
fromCentimeters(double... centimeters)
Creates a length list from centimeter values.LengthList<L>
fromDecimeters(double decimeters)
Creates a length list from a decimeter value.LengthList<L>
fromDecimeters(double... decimeters)
Creates a length list from decimeter values.LengthList<L>
fromInches(double inches)
Creates a length list from an inches value.LengthList<L>
fromInches(double... inches)
Creates a length list from inch values.LengthList<L>
fromMillimeters(double millimeters)
Creates a length list from a millimeters value.LengthList<L>
fromMillimeters(double... millimeters)
Creates a length list from millimeter values.LengthList<L>
fromPoints(double points)
Creates a length list from a point value.LengthList<L>
fromPoints(double... points)
Creates a length list from point values.
-
-
-
Method Detail
-
fromCentimeters
public LengthList<L> fromCentimeters(double... centimeters)
Creates a length list from centimeter values.- Parameters:
centimeters
- Centimeter values.- Returns:
- A new length list with the given values.
-
fromCentimeters
public LengthList<L> fromCentimeters(double centimeters)
Creates a length list from a centimeter value.- Parameters:
centimeters
- Centimeters value.- Returns:
- A new length list with the given value.
-
fromDecimeters
public LengthList<L> fromDecimeters(double... decimeters)
Creates a length list from decimeter values.- Parameters:
decimeters
- Decimeter values.- Returns:
- A new length list with the given values.
-
fromDecimeters
public LengthList<L> fromDecimeters(double decimeters)
Creates a length list from a decimeter value.- Parameters:
decimeters
- Decimeters value.- Returns:
- A new length list with the given value.
-
fromInches
public LengthList<L> fromInches(double... inches)
Creates a length list from inch values.- Parameters:
inches
- Inch values.- Returns:
- A new length list with the given values.
-
fromInches
public LengthList<L> fromInches(double inches)
Creates a length list from an inches value.- Parameters:
inches
- Inches value.- Returns:
- A new length list with the given value.
-
fromMillimeters
public LengthList<L> fromMillimeters(double... millimeters)
Creates a length list from millimeter values.- Parameters:
millimeters
- Millimeter values.- Returns:
- A new length list with the given values.
-
fromMillimeters
public LengthList<L> fromMillimeters(double millimeters)
Creates a length list from a millimeters value.- Parameters:
millimeters
- Millimeters value.- Returns:
- A new length list with the given value.
-
fromPoints
public LengthList<L> fromPoints(double points)
Creates a length list from a point value.- Parameters:
points
- Point value.- Returns:
- A new length list with the given value.
-
fromPoints
public LengthList<L> fromPoints(double... points)
Creates a length list from point values.- Parameters:
points
- Point values.- Returns:
- A new length list with the given values.
-
-