public interface ZoneController<P,A> extends Configger
Modifier and Type | Method and Description |
---|---|
void |
clearAspect()
Clears aspect constraints explicitly set by the user.
|
A |
getAspect()
Returns the plot aspect to use for setting up the plot surface.
|
uk.ac.starlink.ttools.plot2.Navigator<A> |
getNavigator()
Returns the navigator specified by this control.
|
uk.ac.starlink.ttools.plot.Range[] |
getRanges()
Returns the current fixed data coordinate ranges.
|
void |
setAspect(A aspect)
Sets the plot aspect which defines the view on the data.
|
void |
setLatestSurface(uk.ac.starlink.ttools.plot2.Surface surface)
Accepts information about the latest plotting surface to be plotted
by the panel associated with this controller.
|
void |
setRanges(uk.ac.starlink.ttools.plot.Range[] ranges)
Sets fixed data position coordinate ranges.
|
void |
submitReports(Map<LayerId,uk.ac.starlink.ttools.plot2.ReportMap> reports)
Accepts report information generated by plotting layers.
|
void |
updateState(P profile,
uk.ac.starlink.ttools.plot2.PlotLayer[] layers,
boolean axisLock)
Configures this controller for a given set of plot layers.
|
void setRanges(uk.ac.starlink.ttools.plot.Range[] ranges)
ranges
- fixed data position coordinate ranges, or null to clearuk.ac.starlink.ttools.plot.Range[] getRanges()
void setAspect(A aspect)
aspect
- fixed aspect, or null to clearA getAspect()
void clearAspect()
void updateState(P profile, uk.ac.starlink.ttools.plot2.PlotLayer[] layers, boolean axisLock)
This isn't perfect, since it only allows to clear the range or not. Sometimes you might want finer control, e.g. to clear the range in one dimension and retain it in others. It may be possible to fit that into the updateState API, but it would require more work.
profile
- surface profilelayers
- layers which will be plottedaxisLock
- whether re-ranging is inhibited;
normally, if true axes will not be reset by this
method, but the implementation can override that
if it needs tovoid submitReports(Map<LayerId,uk.ac.starlink.ttools.plot2.ReportMap> reports)
The default implementation does nothing, but subclasses may override it to enquire about plot results.
reports
- per-layer plot reports for layers generated
by the most recent plotvoid setLatestSurface(uk.ac.starlink.ttools.plot2.Surface surface)
The default implementation does nothing, but subclasses may override it to acquire information about plot state.
surface
- latest plotting surface.uk.ac.starlink.ttools.plot2.Navigator<A> getNavigator()
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.