public class DecimalScaleFactor extends ScaleFactor
| Modifier and Type | Class and Description |
|---|---|
private static class |
DecimalScaleFactor.Cache |
private static class |
DecimalScaleFactor.DownSmall |
private static class |
DecimalScaleFactor.Unity |
private static class |
DecimalScaleFactor.UpSmall |
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
powerOf10 |
private static char[] |
SUPERSCRIPT_DIGITS |
private static char |
SUPERSCRIPT_MINUS |
| Constructor and Description |
|---|
DecimalScaleFactor(int powerOf10) |
| Modifier and Type | Method and Description |
|---|---|
static void |
appendExponentTo(int exp,
java.lang.StringBuilder out) |
java.lang.StringBuilder |
asExponentialStringBuilder(boolean multiplicationSign) |
int |
compareTo(ScaleFactor other) |
ScaleFactor |
concat(ScaleFactor innerFactor)
Concatenate (that is, multiply) this scale factor with
innerFactor. |
boolean |
equals(java.lang.Object other) |
static DecimalScaleFactor |
get(int powerOf10) |
static DecimalScaleFactor |
getEngFloorFactor(double value) |
double |
getMultiplier() |
static DecimalScaleFactor |
getSciFloorFactor(double value) |
int |
hashCode() |
DecimalScaleFactor |
invert() |
boolean |
isInteger() |
boolean |
isUnity() |
long |
targetFloor(long srcNumericalValue) |
boolean |
targetOutOfRange(double srcNumericalValue,
long maxAbsValue) |
boolean |
targetOutOfRange(long srcNumericalValue,
long maxAbsValue) |
double |
targetValue(double srcNumericalValue) |
long |
targetValue(long srcNumericalValue) |
concat, getOffset, invertAndConcat, invertAndConcat, targetFloor, targetIntFloor, targetNumber, targetNumberfinal int powerOf10
private static final char SUPERSCRIPT_MINUS
private static final char[] SUPERSCRIPT_DIGITS
public static void appendExponentTo(int exp,
java.lang.StringBuilder out)
public static DecimalScaleFactor get(int powerOf10)
public static DecimalScaleFactor getSciFloorFactor(double value)
public static DecimalScaleFactor getEngFloorFactor(double value)
public double getMultiplier()
offset is added)public java.lang.StringBuilder asExponentialStringBuilder(boolean multiplicationSign)
public boolean targetOutOfRange(long srcNumericalValue,
long maxAbsValue)
public boolean targetOutOfRange(double srcNumericalValue,
long maxAbsValue)
public long targetValue(long srcNumericalValue)
srcNumericalValue - a numerical quantity value, expressed in the source unitlongpublic long targetFloor(long srcNumericalValue)
srcNumericalValue - a numerical quantity value, expressed in the source unitlongpublic double targetValue(double srcNumericalValue)
srcNumericalValue - a numerical quantity value, expressed in the source unitpublic boolean isUnity()
public boolean isInteger()
public ScaleFactor concat(ScaleFactor innerFactor)
ScaleFactorinnerFactor. This is just a
special case of ScaleFactor.concat(IScalarAffineTransform).concat in class ScaleFactorScaleFactor.concat(IScalarAffineTransform)public DecimalScaleFactor invert()
invert in interface IScalarAffineTransforminvert in class ScaleFactorpublic int compareTo(ScaleFactor other)
compareTo in interface java.lang.Comparable<ScaleFactor>compareTo in class ScaleFactorpublic boolean equals(java.lang.Object other)
equals in class ScaleFactorpublic int hashCode()
hashCode in class ScaleFactor