com.esri.adf.web.faces.event
Class OverviewEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.faces.event.FacesEvent
          extended by javax.faces.event.ActionEvent
              extended by com.esri.adf.web.faces.event.ADFEvent
                  extended by com.esri.adf.web.faces.event.OverviewEvent
All Implemented Interfaces:
Serializable

public class OverviewEvent
extends ADFEvent

The EventArgs object for the OverviewControl for storing the bounding box coordinates of the overview rectangle. The associated WebOverview object is responsible for handling this event.

See Also:
Serialized Form

Field Summary
static int RECENTER
           
static int ZOOM
           
 
Fields inherited from class com.esri.adf.web.faces.event.ADFEvent
context, parameters
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
OverviewEvent(javax.faces.component.UIComponent source, javax.faces.context.FacesContext facesContext, WebContext context, int mode, int minX, int minY, int maxX, int maxY)
          Constructs the OverviewEventArgs object and stores the bounding box coordinates of the overview's area of interest.
 
Method Summary
 int getMaxX()
          Returns the maxx point to zoom in.
 int getMaxY()
          Returns the maxy point to zoom in.
 int getMinX()
          Returns the minx point to zoom in.
 int getMinY()
          Returns the miny point to zoom in.
 int getMode()
          Returns the action to perform in the map control.
 
Methods inherited from class com.esri.adf.web.faces.event.ADFEvent
getParameter, getWebContext
 
Methods inherited from class javax.faces.event.ActionEvent
isAppropriateListener, processListener
 
Methods inherited from class javax.faces.event.FacesEvent
getComponent, getPhaseId, queue, setPhaseId
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ZOOM

public static final int ZOOM
See Also:
Constant Field Values

RECENTER

public static final int RECENTER
See Also:
Constant Field Values
Constructor Detail

OverviewEvent

public OverviewEvent(javax.faces.component.UIComponent source,
                     javax.faces.context.FacesContext facesContext,
                     WebContext context,
                     int mode,
                     int minX,
                     int minY,
                     int maxX,
                     int maxY)
Constructs the OverviewEventArgs object and stores the bounding box coordinates of the overview's area of interest.

Parameters:
source - the JSF component
facesContext - the FacesContext
context - the WebContext
mode - the action to perform on the map control
minX - the minx value in screen coordinates
minY - the miny value in screen coordinates
maxX - the maxx value in screen coordinates
maxY - the maxy value in screen coordinates
Method Detail

getMinY

public int getMinY()
Returns the miny point to zoom in.

Returns:
int- the miny point

getMinX

public int getMinX()
Returns the minx point to zoom in.

Returns:
int- the minx point

getMaxY

public int getMaxY()
Returns the maxy point to zoom in.

Returns:
int- the maxy point

getMaxX

public int getMaxX()
Returns the maxx point to zoom in.

Returns:
int- the maxx point

getMode

public int getMode()
Returns the action to perform in the map control. Either OverviewEvent.ZOOM or OverviewEvent.RECENTER

Returns:
String- the action value