|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.svg.DefaultRealToStringConverter
public class DefaultRealToStringConverter
This singleton class translates float and double
values to String in a default manner.
| Constructor Summary | |
|---|---|
protected |
DefaultRealToStringConverter()
Builds a DefaultRealToStringConverter instance. |
| Method Summary | |
|---|---|
String |
doubleToString(double value)
Translates a double to a String using the
Double.toString method if there are some decimals and
Integer.toString otherwise. |
String |
floatToString(float value)
Translates a float to a String using the
Float.toString method if there are some decimals and
Integer.toString otherwise. |
static DefaultRealToStringConverter |
getInstance()
Returns a single instance of DefaultRealToStringConverter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DefaultRealToStringConverter()
DefaultRealToStringConverter instance.
| Method Detail |
|---|
public static DefaultRealToStringConverter getInstance()
DefaultRealToStringConverter.
public String floatToString(float value)
float to a String using the
Float.toString method if there are some decimals and
Integer.toString otherwise.
floatToString in interface SVGDocumentBuilderConfigurator.RealToStringConvertervalue - The value to be translated.public String doubleToString(double value)
double to a String using the
Double.toString method if there are some decimals and
Integer.toString otherwise.
doubleToString in interface SVGDocumentBuilderConfigurator.RealToStringConvertervalue - The value to be translated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||