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