Package uk.ac.starlink.topcat.plot2
Class GuiNavigationListener<A>
java.lang.Object
uk.ac.starlink.ttools.plot2.NavigationListener<A>
uk.ac.starlink.topcat.plot2.GuiNavigationListener<A>
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
public abstract class GuiNavigationListener<A>
extends uk.ac.starlink.ttools.plot2.NavigationListener<A>
Abstract NavigationListener subclass that works with a PlotPanel.
The main thing it does is arrange for progress logging where required.
The only time this is required is when a data pos iterator
is used in handling (re-center) click events. That is generally only
for 3d plots. But it's harmless to use this wrapper in any case.
- Since:
- 19 Nov 2013
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSupplier<uk.ac.starlink.ttools.plot2.CoordSequence>
protected abstract uk.ac.starlink.ttools.plot2.Navigator<A>
getExistingNavigator
(int isurf) Returns the navigator for a surface that is actually known by this listener.uk.ac.starlink.ttools.plot2.Navigator<A>
getNavigator
(int isurf) uk.ac.starlink.ttools.plot2.Surface
getSurface
(int isurf) int
getSurfaceIndex
(Point pos) May return a negative value if no surface corresponds to the given point.protected void
handleClick
(uk.ac.starlink.ttools.plot2.Navigator<A> navigator, int isurf, Point pos, int ibutt, Supplier<uk.ac.starlink.ttools.plot2.CoordSequence> dposSupplier) Methods inherited from class uk.ac.starlink.ttools.plot2.NavigationListener
addListeners, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, removeListeners, setAspect, setDecoration, updateDecoration
-
Constructor Details
-
GuiNavigationListener
Constructor.- Parameters:
plotPanel
- plot panel
-
-
Method Details
-
getSurfaceIndex
May return a negative value if no surface corresponds to the given point.- Specified by:
getSurfaceIndex
in classuk.ac.starlink.ttools.plot2.NavigationListener<A>
-
getSurface
public uk.ac.starlink.ttools.plot2.Surface getSurface(int isurf) - Specified by:
getSurface
in classuk.ac.starlink.ttools.plot2.NavigationListener<A>
-
createDataPosSupplier
- Specified by:
createDataPosSupplier
in classuk.ac.starlink.ttools.plot2.NavigationListener<A>
-