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 and Description |
---|
SurfaceZoomRegionList(uk.ac.starlink.ttools.plot.SurfacePlot plot)
Constructor.
|
Modifier and Type | Method and 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() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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 interface java.util.Collection
size
in interface java.util.List
size
in class java.util.AbstractCollection
public java.lang.Object get(int index)
get
in interface java.util.List
get
in class java.util.AbstractList
public void reconfigure()
Copyright © 2003-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.