Package uk.ac.starlink.topcat.plot
Class SurfaceZoomRegionList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<ZoomRegion>
-
- uk.ac.starlink.topcat.plot.SurfaceZoomRegionList
-
- All Implemented Interfaces:
java.lang.Iterable<ZoomRegion>,java.util.Collection<ZoomRegion>,java.util.List<ZoomRegion>
public abstract class SurfaceZoomRegionList extends java.util.AbstractList<ZoomRegion>
List of zoom regions for use with aSurfacePlot. 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
-
-
Constructor Summary
Constructors Constructor Description SurfaceZoomRegionList(uk.ac.starlink.ttools.plot.SurfacePlot plot)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ZoomRegionget(int index)voidreconfigure()Configures 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 java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Method Detail
-
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 interfacejava.util.Collection<ZoomRegion>- Specified by:
sizein interfacejava.util.List<ZoomRegion>- Specified by:
sizein classjava.util.AbstractCollection<ZoomRegion>
-
get
public ZoomRegion get(int index)
- Specified by:
getin interfacejava.util.List<ZoomRegion>- Specified by:
getin classjava.util.AbstractList<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).
-
-