public abstract class SurfaceZoomRegionList
extends java.util.AbstractList
SurfacePlot
.
The number of elements changes according to the current state of the plot,
so don't copy it into an array and use that instead.Constructor | Description |
---|---|
SurfaceZoomRegionList(uk.ac.starlink.ttools.plot.SurfacePlot plot) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
get(int index) |
|
void |
reconfigure() |
Configures this list appropriately for the current state of the plot.
|
protected abstract void |
requestZoom(double[][] bounds) |
Invoked when the user indicates by mouse gestures that a zoomed
view is wanted.
|
int |
size() |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
public SurfaceZoomRegionList(uk.ac.starlink.ttools.plot.SurfacePlot plot)
plot
- plot for zoomingprotected abstract void requestZoom(double[][] bounds)
bounds
array
are 2-element double[]
arrays giving (lower, upper)
bounds of the range along each axis which is required.
A null element indicates that no zooming along that axis is required.
Boundary values are in data coordinates.bounds
- zoom request detailspublic int size()
size
in class java.util.AbstractCollection
public java.lang.Object get(int index)
get
in class java.util.AbstractList
public void reconfigure()
Copyright ? 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.