Package uk.ac.starlink.ttools.plot2
Interface Scaling
-
- All Known Subinterfaces:
Scaling.HistogramScaling,Scaling.RangeScaling
@Equality public interface Scaling
Defines a policy for scaling values to a fixed interval. The job of a Scaling is to create aScaler, usually from information that can be gained from aSpaninstance. Scaling implementation classes should generally implement one of the sub-interfaces here to indicate how this can be done.- Since:
- 22 Jan 2015
- Author:
- Mark Taylor
- See Also:
Scalings
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceScaling.HistogramScalingMarker interface for Scaling instances that create Scalers based on a histogram assembled from data.static interfaceScaling.RangeScalingInterface for Scaling instances that can create Scalers from a lower and upper bound.
-
Field Summary
Fields Modifier and Type Field Description static Scaling.RangeScalingAUTOAsinh-based scaling with default parameters.static Scaling.HistogramScalingHISTOHistogram scaling on a linear scale.static Scaling.HistogramScalingHISTOLOGHistogram scaling on a logarithmic scale.static Scaling.RangeScalingLINEARLinear scaling.static Scaling.RangeScalingLOGLogarithmic scaling.static Scaling.RangeScalingSQRTSquare root scaling.static Scaling.RangeScalingSQUARESquare scaling.static Scaling[]STRETCHESList of standard options for colour map stretch.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDescription()Returns a short description of this scaling.java.lang.StringgetName()Returns the name of this scaling.booleanisLogLike()Indicates whether this scaling is logarithmic.
-
-
-
Field Detail
-
LINEAR
static final Scaling.RangeScaling LINEAR
Linear scaling.
-
LOG
static final Scaling.RangeScaling LOG
Logarithmic scaling.
-
SQRT
static final Scaling.RangeScaling SQRT
Square root scaling.
-
SQUARE
static final Scaling.RangeScaling SQUARE
Square scaling.
-
AUTO
static final Scaling.RangeScaling AUTO
Asinh-based scaling with default parameters.
-
HISTO
static final Scaling.HistogramScaling HISTO
Histogram scaling on a linear scale.
-
HISTOLOG
static final Scaling.HistogramScaling HISTOLOG
Histogram scaling on a logarithmic scale.
-
STRETCHES
static final Scaling[] STRETCHES
List of standard options for colour map stretch.
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of this scaling.- Returns:
- name
-
getDescription
java.lang.String getDescription()
Returns a short description of this scaling.- Returns:
- short text description
-
isLogLike
boolean isLogLike()
Indicates whether this scaling is logarithmic. If so, it should be displayed on logarithmic axis, and can't cope with negative values.- Returns:
- true for basically logarithmic, false for (perhaps distorted) linear
-
-