visad.bom
Class DiscoverableZoom
- java.lang.Object
-
- visad.bom.DiscoverableZoom
-
- All Implemented Interfaces:
- java.util.EventListener, ControlListener
public class DiscoverableZoom extends java.lang.Object implements ControlListener
DiscoverableZoom is the VisAD class for discoverable zoom of displayed data.
-
-
Constructor Summary
Constructors Constructor and Description DiscoverableZoom()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcontrolChanged(ControlEvent e)send a ControlEvent to this ControlListenervoidsetRenderers(DataRenderer[] rs, float distance)the DataRenderers in the rs array are assumed to each link to a Tuple data object that includes Real fields for Latitude and Longitude, and that Latitude and Longitude are mapped to spatial DisplayRealTypes; the DataRenderers in rs are enabled or disabled to maintain a roughly constant spacing among their visible depictions; distance is the scale for distance; in order to work, this DiscoverableZoom must be added as a Control Listener to the ProjectionControl of the DisplayImpl linked to the DataRenderer array rs; see CollectiveBarbManipulation.java for an example of use
-
-
-
Method Detail
-
setRenderers
public void setRenderers(DataRenderer[] rs, float distance) throws VisADException, java.rmi.RemoteException
the DataRenderers in the rs array are assumed to each link to a Tuple data object that includes Real fields for Latitude and Longitude, and that Latitude and Longitude are mapped to spatial DisplayRealTypes; the DataRenderers in rs are enabled or disabled to maintain a roughly constant spacing among their visible depictions; distance is the scale for distance; in order to work, this DiscoverableZoom must be added as a Control Listener to the ProjectionControl of the DisplayImpl linked to the DataRenderer array rs; see CollectiveBarbManipulation.java for an example of use- Throws:
VisADExceptionjava.rmi.RemoteException
-
controlChanged
public void controlChanged(ControlEvent e) throws VisADException, java.rmi.RemoteException
Description copied from interface:ControlListenersend a ControlEvent to this ControlListener- Specified by:
controlChangedin interfaceControlListener- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
DMelt 3.0 © DataMelt by jWork.ORG