Class ncsa.horizon.coordinates.formatters.FreqAxisPosFormatter
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.


Variable Index

 o freqAbbrev
 o freqUnit
 o myname

Constructor Index

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

Method Index

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

Variables

 o freqUnit
  protected static String freqUnit
 o freqAbbrev
  protected static String freqAbbrev
 o myname
  protected final static String myname

Constructors

 o FreqAxisPosFormatter
  public FreqAxisPosFormatter()
format frequency values with "Hz" as the unit assuming that the native unit of the values is Hertz.
 o 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.
 o 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.
 o 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.

Methods

 o initialize
  protected void initialize()
loads the prefix and abbreviation lists
Overrides:
initialize in class MetricAxisPosFormatter
 o 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