Class ncsa.horizon.coordinates.formatters.MetricVelocityFormatter
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.horizon.coordinates.formatters.MetricVelocityFormatter

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

public class MetricVelocityFormatter
extends MetricAxisPosFormatter
support for printing out velocities (double values) as floating point numbers appended by a metric velocity unit.


Variable Index

 o myname
 o velAbbrev
 o velUnit

Constructor Index

 o MetricVelocityFormatter()
format velocity values with "m/s" as the unit assuming that the native unit of the values is meters/second.
 o MetricVelocityFormatter(boolean)
format velocity values assuming that the native unit of the values is meters/second.
 o MetricVelocityFormatter(int, boolean)
format velocity values assuming that the native unit of the values is meters/second.
 o MetricVelocityFormatter(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 velUnit
  protected static String velUnit
 o velAbbrev
  protected static String velAbbrev
 o myname
  protected final static String myname

Constructors

 o MetricVelocityFormatter
  public MetricVelocityFormatter()
format velocity values with "m/s" as the unit assuming that the native unit of the values is meters/second.
 o MetricVelocityFormatter
  public MetricVelocityFormatter(boolean useAbbreviation)
format velocity values assuming that the native unit of the values is meters/second.
Parameters:
useAbbreviation - if true, an abbreviation should be used.
 o MetricVelocityFormatter
  public MetricVelocityFormatter(int inPower,
                                 boolean useAbbreviation)
format velocity values assuming that the native unit of the values is meters/second.
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 MetricVelocityFormatter
  public MetricVelocityFormatter(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