public abstract class CartesianAxisController<P,A> extends AxisController<P,A>
Constructor and Description |
---|
CartesianAxisController(uk.ac.starlink.ttools.plot2.SurfaceFactory<P,A> surfFact,
uk.ac.starlink.ttools.plot2.config.ConfigKey<String>[] axisLabelKeys)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addLabelsTab()
Adds the axis label configuration tab set up by this component.
|
void |
configureForLayers(LayerControl[] controls)
This abstract method provides a hook for implementations to adjust
their GUI state based on the layer controls which will be supplying
layers for them to plot.
|
protected boolean |
forceClearRange(P oldProfile,
P newProfile)
Determines whether the change between two profiles forces an
unconditional re-range of the plotting surface.
|
AutoConfigSpecifier |
getLabelSpecifier()
Returns the specifier used for axis labels.
|
protected abstract boolean |
logChanged(P prof1,
P prof2)
Indicates whether the scaling has changed to or from logarithmic
for any of the cartesian axes between two profiles.
|
static boolean |
logChanged(uk.ac.starlink.ttools.plot2.Scale[] scales1,
uk.ac.starlink.ttools.plot2.Scale[] scales2)
Determines whether the logarithmic (actually: positive definite)
status has changed for any of the elements of two matched Scale arrays.
|
addActionListener, addAspectConfigTab, addControl, addNavigatorTab, assertHasKeys, clearAspect, clearRange, getActionForwarder, getAspect, getConfig, getControls, getMainControl, getNavigator, getRanges, getSurfaceFactory, removeActionListener, setAspect, setLatestSurface, setRanges, submitReports, updateState
public void configureForLayers(LayerControl[] controls)
AxisController
configureForLayers
in class AxisController<P,A>
controls
- layer controls expected to provide layers
to be plotted on these axesprotected void addLabelsTab()
public AutoConfigSpecifier getLabelSpecifier()
protected boolean forceClearRange(P oldProfile, P newProfile)
AxisController
forceClearRange
in class AxisController<P,A>
oldProfile
- profile before changenewProfile
- profile after changeprotected abstract boolean logChanged(P prof1, P prof2)
prof1
- first profileprof2
- second profilepublic static boolean logChanged(uk.ac.starlink.ttools.plot2.Scale[] scales1, uk.ac.starlink.ttools.plot2.Scale[] scales2)
scales1
- first array of axis scalesscales2
- second array of axis scales, same size as firstCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.