Package com.macrofocus.treemap
Class ScaleFactory
- java.lang.Object
-
- com.macrofocus.treemap.ScaleFactory
-
public class ScaleFactory extends java.lang.ObjectFactory class for accessing predefined scaling schemes.
-
-
Field Summary
Fields Modifier and Type Field Description static ScaleABSReturns the absolute value.static ScaleEXPReturns Euler's number e raised to the power of the value.static ScaleEXP10Returns the value raised to the power of 10.static ScaleINVERSEReturns the inverse (1 / x) of the value.static ScaleLOGReturns the natural logarithm (base e) of the value.static ScaleLOG1PReturns the natural logarithm of the sum of the argument and 1.static ScaleMAXReturn the inverse value on its range (max - x)static ScaleMINReturn the translated value x - Min.static ScaleORIGINALDo not scale the value.static ScaleXPLUS1Return the value plus 1.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Scale entry)Scaleget(java.lang.String name)ScalegetDefault()static ScaleFactorygetInstance()java.util.List<Scale>getScales()
-
-
-
Field Detail
-
ORIGINAL
public static final Scale ORIGINAL
Do not scale the value.
-
ABS
public static final Scale ABS
Returns the absolute value.
-
EXP10
public static final Scale EXP10
Returns the value raised to the power of 10.
-
EXP
public static final Scale EXP
Returns Euler's number e raised to the power of the value.
-
INVERSE
public static final Scale INVERSE
Returns the inverse (1 / x) of the value.
-
LOG
public static final Scale LOG
Returns the natural logarithm (base e) of the value.
-
LOG1P
public static final Scale LOG1P
Returns the natural logarithm of the sum of the argument and 1.
-
MIN
public static final Scale MIN
Return the translated value x - Min.
-
MAX
public static final Scale MAX
Return the inverse value on its range (max - x)
-
XPLUS1
public static final Scale XPLUS1
Return the value plus 1.
-
-
Method Detail
-
getInstance
public static ScaleFactory getInstance()
-
add
public void add(Scale entry)
-
getDefault
public Scale getDefault()
-
getScales
public java.util.List<Scale> getScales()
-
get
public Scale get(java.lang.String name)
-
-