org.faceless.graph.formatter
Class SimpleFormatter

java.lang.Object
  extended by org.faceless.graph.formatter.Formatter
      extended by org.faceless.graph.formatter.SimpleFormatter

public class SimpleFormatter
extends Formatter

Format values using a user defined java.text.DecimalFormat


Field Summary
 
Fields inherited from class org.faceless.graph.formatter.Formatter
MINIMAL, NORMAL, SPARSE
 
Constructor Summary
SimpleFormatter(DecimalFormat format)
          Create a new SimpleFormatter
 
Method Summary
 String format(double in)
          Return a String that is the formatted version of the input parameter.
 
Methods inherited from class org.faceless.graph.formatter.Formatter
isDiscrete, setDensity, setFixedEnds, steps
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFormatter

public SimpleFormatter(DecimalFormat format)
Create a new SimpleFormatter

Parameters:
format - The java.text.DecimalFormat to use.
Method Detail

format

public String format(double in)
Description copied from class: Formatter
Return a String that is the formatted version of the input parameter.

Specified by:
format in class Formatter


Copyright © 2001-2012 Big Faceless Organization