public class AuxScale extends Object
Modifier and Type | Field and Description |
---|---|
static AuxScale |
COLOR
AuxScale object used for the standard colour scaling axis.
|
Modifier and Type | Method and Description |
---|---|
static Map<AuxScale,Span> |
calculateAuxSpans(AuxScale[] scales,
List<Bi<Surface,PlotLayer>> surfLayers,
Object[] knownPlans,
DataStore dataStore)
Fills in range information for a submitted list of AuxScale objects
from the data in a given list of layers.
|
static Span |
calculateSpan(AuxScale scale,
List<Bi<Surface,PlotLayer>> surfLayers,
Object[] knownPlans,
DataStore dataStore)
Calculates range information for an AuxScale object from the
data in a given list of layers.
|
static Span |
clipSpan(Span dataSpan,
Span fixSpan,
Subrange subrange,
boolean isLog)
Amalgamates range requirements for a single scale to return the
actual range to use.
|
static AuxScale[] |
getAuxScales(PlotLayer[] layers)
Utility method to acquire all the scales that are used in an
array of layers.
|
static Set<AuxScale> |
getMissingScales(PlotLayer[] layers,
Map<AuxScale,Span> dataSpans,
Map<AuxScale,Span> fixSpans)
Returns a list of scale objects for which calculations are required.
|
String |
getName()
Returns the scale name.
|
static List<Bi<Surface,PlotLayer>> |
pairSurfaceLayers(Surface surf,
PlotLayer[] layers)
Utility method that produces a list of paired (surface,layer) objects
from an array of PlotLayers and a single Surface.
|
String |
toString() |
public static AuxScale COLOR
public AuxScale(String name)
name
- scale name for human consumptionpublic String getName()
public static List<Bi<Surface,PlotLayer>> pairSurfaceLayers(Surface surf, PlotLayer[] layers)
surf
- surface common to all layerslayers
- plot layer arraypublic static AuxScale[] getAuxScales(PlotLayer[] layers)
layers
- layers that may reference scalespublic static Map<AuxScale,Span> calculateAuxSpans(AuxScale[] scales, List<Bi<Surface,PlotLayer>> surfLayers, Object[] knownPlans, DataStore dataStore)
scales
- scales to calculate ranges forsurfLayers
- list (layer, approximate surface) pairs
over which spans should be calculatedknownPlans
- array of available plan objects; may be emptydataStore
- data repositoryscales
@Slow public static Span calculateSpan(AuxScale scale, List<Bi<Surface,PlotLayer>> surfLayers, Object[] knownPlans, DataStore dataStore)
scale
- scale to calculate ranges forsurfLayers
- list (layer, approximate surface) pairs
over which spans should be calculatedknownPlans
- array of available plan objects; may be emptydataStore
- data repositoryscale
public static Span clipSpan(Span dataSpan, Span fixSpan, Subrange subrange, boolean isLog)
dataSpan
- actual data span acquired by scanning the data,
or nullfixSpan
- single- or double-ended fixed data span, or nullsubrange
- subrange, if null 0-1 is assumedisLog
- true for logarithmic scale, false for linearpublic static Set<AuxScale> getMissingScales(PlotLayer[] layers, Map<AuxScale,Span> dataSpans, Map<AuxScale,Span> fixSpans)
calculateAuxSpans
method, is returned.layers
- layers to be plotteddataSpans
- ranges acquired by scanning data keyed by scale,
(optional per scale)fixSpans
- single- or double-ended fixed data ranges,
keyed by scale (optional per scale)Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.