Class SurfaceZoomRegionList
- All Implemented Interfaces:
Iterable<ZoomRegion>, Collection<ZoomRegion>, List<ZoomRegion>, SequencedCollection<ZoomRegion>
List of zoom regions for use with a
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.- Since:
- 2 Apr 2008
- Author:
- Mark Taylor
-
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionSurfaceZoomRegionList(uk.ac.starlink.ttools.plot.SurfacePlot plot) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionget(int index) voidConfigures this list appropriately for the current state of the plot.protected abstract voidrequestZoom(double[][] bounds) Invoked when the user indicates by mouse gestures that a zoomed view is wanted.intsize()Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Constructor Details
-
SurfaceZoomRegionList
public SurfaceZoomRegionList(uk.ac.starlink.ttools.plot.SurfacePlot plot) Constructor.- Parameters:
plot- plot for zooming
-
-
Method Details
-
requestZoom
protected abstract void requestZoom(double[][] bounds) Invoked when the user indicates by mouse gestures that a zoomed view is wanted. The elements of theboundsarray are 2-elementdouble[]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.- Parameters:
bounds- zoom request details
-
size
public int size()- Specified by:
sizein interfaceCollection<ZoomRegion>- Specified by:
sizein interfaceList<ZoomRegion>- Specified by:
sizein classAbstractCollection<ZoomRegion>
-
get
- Specified by:
getin interfaceList<ZoomRegion>- Specified by:
getin classAbstractList<ZoomRegion>
-
reconfigure
public void reconfigure()Configures this list appropriately for the current state of the plot. Should be called whenever plot geometry changes (including before first use).
-