- java.lang.Object
-
- org.jfree.svg.util.DoubleConverter
-
- All Implemented Interfaces:
java.util.function.DoubleFunction<java.lang.String>
public class DoubleConverter extends java.lang.Object implements java.util.function.DoubleFunction<java.lang.String>
A function that converts double values to a string representation with a maximum number of decimal places.
-
-
Field Summary
Fields Modifier and Type Field Description private java.text.DecimalFormat
formatter
-
Constructor Summary
Constructors Constructor Description DoubleConverter(int dp)
Creates a new function that converts double values to strings with the maximum number of decimal places as specified.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
apply(double value)
Returns a string representation of the specified value.
-