    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class ncsa.horizon.coordinates.formatters.FreqAxisPosFormatter

    java.lang.Object
       |
       +----ncsa.horizon.coordinates.formatters.GenericAxisPosFormatter
               |
               +----ncsa.horizon.coordinates.formatters.MetricAxisPosFormatter
                       |
                       +----ncsa.horizon.coordinates.formatters.FreqAxisPosFormatter

public class FreqAxisPosFormatter
extends MetricAxisPosFormatter

support for printing out frequencies (double values) as floating point numbers appended by a metric frequency unit.

##

freqAbbrev
freqUnit
myname

##

FreqAxisPosFormatter()
  format frequency values with "Hz" as the unit assuming that the native unit of the values is Hertz.
FreqAxisPosFormatter(boolean)
  format frequency values assuming that the native unit of the values is Hertz.
FreqAxisPosFormatter(int, boolean)
  format frequency values assuming that the native unit of the values is Hertz.
FreqAxisPosFormatter(int, boolean, int)
  format frequencies using the prefix for the specified power

##

initialize()
  loads the prefix and abbreviation lists
setAbbreviated(boolean)
  set whether abbreviations are used

##

freqUnit

      protected static String freqUnit

freqAbbrev

      protected static String freqAbbrev

myname

      protected final static String myname

##

FreqAxisPosFormatter

      public FreqAxisPosFormatter()

  format frequency values with "Hz" as the unit assuming that the native unit of the values is Hertz.

FreqAxisPosFormatter

      public FreqAxisPosFormatter(boolean useAbbreviation)

  format frequency values assuming that the native unit of the values is Hertz.
  Parameters:
    useAbbreviation - if true, an abbreviation should be used.

FreqAxisPosFormatter

      public FreqAxisPosFormatter(int inPower,
                                  boolean useAbbreviation)

  format frequency values assuming that the native unit of the values is Hertz.
  Parameters:
    inPower - assume that values input to toString(double) will be in units of 10^inPower, relative to unit
    useAbbreviation - if true, an abbreviation should be used.

FreqAxisPosFormatter

      public FreqAxisPosFormatter(int inPower,
                                  boolean useAbbreviation,
                                  int outPower)

  format frequencies using the prefix for the specified power
  Parameters:
    inPower - assume that values input to toString(double) will be in units of 10^inPower, relative to unit
    useAbbreviation - if true, the prefix abbreviation should be used.
    outPower - the power for the prefix to be used; if a prefix for this power is not known, the highest valued prefix that is less than request will be used.

##

initialize

      protected void initialize()

  loads the prefix and abbreviation lists
  Overrides:
    initialize in class MetricAxisPosFormatter

setAbbreviated

      public void setAbbreviated(boolean useAbbreviation)

  set whether abbreviations are used
  Overrides:
    setAbbreviated in class MetricAxisPosFormatter

    All Packages  Class Hierarchy  This Package  Previous  Next  Index