|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot.Rounder
public abstract class Rounder
Provides round numbers. Static instances are provided for rounding numbers to be used in a linear or a logarithmic context.
Field Summary | |
---|---|
static Rounder |
LINEAR
Number rounder for linear scaling. |
static Rounder |
LOG
Number rounder for logarithmic scaling. |
Constructor Summary | |
---|---|
Rounder()
|
Method Summary | |
---|---|
abstract double |
nextDown(double value)
Returns the next round number smaller than the given value. |
abstract double |
nextUp(double value)
Returns the next round number larger than the given value. |
abstract double |
round(double value)
Returns a round number near the given value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Rounder LINEAR
public static final Rounder LOG
Constructor Detail |
---|
public Rounder()
Method Detail |
---|
public abstract double round(double value)
value
- input value
value
public abstract double nextUp(double value)
value
- input value
value
public abstract double nextDown(double value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |