Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.faceless.graph.formatter
Class NullFormatter

    java.lang.Object
      org.faceless.graph.formatter.Formatter
          org.faceless.graph.formatter.NullFormatter

    public class NullFormatter

extends Formatter

The NullFormatter always returns an empty String as it's formatted value, and an emtpy array as it's list of steps. Use this to effectively "turn off" the display of an axis

Field Summary

Fields inherited from class org.faceless.graph.formatter.Formatter
`MINIMAL, NORMAL, SPARSE`

Constructor Summary
`NullFormatter()`

Method Summary
`String` | `format(double in)` Return a String that is the formatted version of the input parameter.
`double[]` | `steps(double min, double max)` Which steps between min and max should be marked on the axis.

Methods inherited from class org.faceless.graph.formatter.Formatter
`isDiscrete, setDensity, setFixedEnds`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NullFormatter

    public NullFormatter()

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`

### steps

    public double[] steps(double min,
                          double max)

  Description copied from class: `Formatter`

  Which steps between min and max should be marked on the axis. This is an array because although the steps will usually be evenly spaced, they may not always be (see the `DateFormatter` for an example).

  This method returns the default settings, which is to calculate a number of "useful" values between min and max, possibly rounding those two values up or down to fit the scale. The number of values returned depends on the density setting.

  Overrides:
    `steps` in class `Formatter`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2012 Big Faceless Organization