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,
PlotLayer[] layers,
Surface surface,
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 AuxScale[] |
getAuxScales(PlotLayer[] layers)
Utility method to acquire all the scales that are used in an
array of layers.
|
static Map<AuxScale,Span> |
getClippedSpans(AuxScale[] scales,
Map<AuxScale,Span> dataSpans,
Map<AuxScale,Span> fixSpans,
Map<AuxScale,Subrange> subranges,
Map<AuxScale,Boolean> logFlags)
Amalgamates range requirements for a set of scales to return
actual ranges to be used.
|
static 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.
|
String |
toString() |
public static AuxScale COLOR
public AuxScale(String name)
name
- scale name for human consumptionpublic String getName()
public static AuxScale[] getAuxScales(PlotLayer[] layers)
layers
- layers that may reference scalespublic static Map<AuxScale,Span> calculateAuxSpans(AuxScale[] scales, PlotLayer[] layers, Surface surface, Object[] knownPlans, DataStore dataStore)
scales
- scales to calculate ranges forlayers
- plot layerssurface
- approximate plot surfaceknownPlans
- array of available plan objects; may be emptydataStore
- data repositoryscales
public static Map<AuxScale,Span> getClippedSpans(AuxScale[] scales, Map<AuxScale,Span> dataSpans, Map<AuxScale,Span> fixSpans, Map<AuxScale,Subrange> subranges, Map<AuxScale,Boolean> logFlags)
scales
- list of scales for which output ranges are requireddataSpans
- actual data ranges acquired by scanning the data,
keyed by scale (optional per scale)fixSpans
- single- or double-ended fixed data ranges,
keyed by scale (optional per scale)subranges
- subrange keyed by scale; optional per scale,
if absent 0-1 is assumedlogFlags
- flags indicating logarithmic scale; optional
per scale, absent equivalent to false indicates
linear scalingpublic static 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 © 2022 Central Laboratory of the Research Councils. All Rights Reserved.