com.iver.cit.gvsig.gui.toc
Class WCSZoomToPixelTocMenuEntry

java.lang.Object
  extended byTocMenuEntry
      extended bycom.iver.cit.gvsig.gui.toc.WCSZoomToPixelTocMenuEntry

public class WCSZoomToPixelTocMenuEntry
extends TocMenuEntry

This class implements the TOC meny entry to do a zoom to pixel. Zooming to a pixel causes to change the view's zoom to fit in the coverage's native resolution. Entrada de menú para la activación de la funcionalidad de zoom a un pixel.

Author:
Jaume - jaume.dominguez@iver.es
See Also:
Serialized Form

Field Summary
static int ZOOM_TO_VIEW_CENTER
           
 int zoomType
           
 
Constructor Summary
WCSZoomToPixelTocMenuEntry()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Calculates the zoom that fits the coverage native resolution.
 void initialize(FPopupMenu m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZOOM_TO_VIEW_CENTER

public static final int ZOOM_TO_VIEW_CENTER
See Also:
Constant Field Values

zoomType

public int zoomType
Constructor Detail

WCSZoomToPixelTocMenuEntry

public WCSZoomToPixelTocMenuEntry()
Method Detail

initialize

public void initialize(FPopupMenu m)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Calculates the zoom that fits the coverage native resolution. TODO fix the little loss of accuracy caused by a floating point issue