| Modifier and Type | Class and Description |
|---|---|
static class |
ScaleType.Param
Defines a numerical parameter for a ScaleType.
|
| Modifier and Type | Field and Description |
|---|---|
static ScaleType |
ASINH
Scale type using inverse hyperbolic sin scaling.
|
static ScaleType |
LINEAR
Linear scale type, no parameters.
|
static ScaleType |
LOG
Logarithmic scale type, no parameters.
|
static ScaleType |
SYMLOG
Scale type using so-called symmetric log scaling.
|
static ScaleType |
TIME
Time scale type, linear but with a custom rounding.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ScaleType(String scaleName,
ScaleType.Param[] params)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Scale |
createScale(double[] paramValues)
Constructs a scale.
|
static ScaleType |
fromName(String name)
Returns a ScaleType instance with the given name.
|
abstract String |
getDescription()
Returns an XML description of this scale type.
|
static ScaleType[] |
getInstances()
Returns a list of the general-purpose instances of this class.
|
String |
getName()
Returns the name of this type.
|
ScaleType.Param[] |
getParams()
Returns the ordered list of parameter definitions that must be
supplied for scales produced by this type.
|
String |
toString() |
public static final ScaleType LINEAR
public static final ScaleType LOG
public static final ScaleType SYMLOG
Scales have two parameters which must both be >0:
linthresh:
defines the linear region (-linthresh..linthresh)
linscale:
ratio of graphical extent of the region (0,linthresh)
to a decade in the logarithmic region
linthreshpublic static final ScaleType ASINH
x -> asinh(x/a).
This function is asymptotically linear near the origin,
and asymptotically logarithmic (or negative logarithmic)
far from the origin.
The "linear width" parameter a, which must be >0,
defines the extent of the quasi-linear region.public static final ScaleType TIME
protected ScaleType(String scaleName, ScaleType.Param[] params)
scaleName - short name for the scale typeparams - numeric parameters of this scale typepublic abstract Scale createScale(double[] paramValues)
paramValues - numeric arguments for this scaleIllegalArgumentException - if the values are not acceptablepublic ScaleType.Param[] getParams()
public String getName()
public abstract String getDescription()
public static ScaleType[] getInstances()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.