org.gwtopenmaps.openlayers.client.control
Class Control

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
          extended by org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
              extended by org.gwtopenmaps.openlayers.client.control.Control
Direct Known Subclasses:
ArgParser, Attribution, DeleteFeature, DragFeature, DragPan, DrawFeature, GetFeature, Graticule, LayerSwitcher, Measure, ModifyFeature, MouseDefaults, MousePosition, MouseToolbar, Navigation, NavigationHistory, OverviewMap, Panel, PanZoom, PanZoomBar, Scale, ScaleLine, SelectFeature, Snapping, WMSGetFeatureInfo, ZoomBox, ZoomIn, ZoomOut

public class Control
extends OpenLayersEObjectWrapper

Author:
Erdem Gunay

Field Summary
 
Fields inherited from class org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
eventListeners
 
Constructor Summary
protected Control(JSObject element)
           
 
Method Summary
 boolean activate()
           
 void addControlActivateListener(ControlActivateListener listener)
           
 void addControlDeactivateListener(ControlDeactivateListener listener)
           
 boolean deactivate()
           
 void disable()
          Disable Control
 void enable()
          Enable the Control
 String getControlId()
          Give the Control ID
 Vector getLayer()
           
 Map getMap()
          get the map to which this control is attached
 String getZIndex()
           
 boolean isActive()
           
static Control narrowToControl(JSObject object)
           
 void setAutoActivate(boolean autoActivate)
           
 
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
getListeners, narrowToOpenLayersEObjectWrapper, removeListener
 
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
getClassName, getEvents, narrowToOpenLayersObjectWrapper
 
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
getJSObject, setJSObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Control

protected Control(JSObject element)
Method Detail

narrowToControl

public static Control narrowToControl(JSObject object)

setAutoActivate

public void setAutoActivate(boolean autoActivate)

activate

public boolean activate()

deactivate

public boolean deactivate()

addControlActivateListener

public void addControlActivateListener(ControlActivateListener listener)

addControlDeactivateListener

public void addControlDeactivateListener(ControlDeactivateListener listener)

isActive

public boolean isActive()

enable

public void enable()
Enable the Control


disable

public void disable()
Disable Control


getControlId

public String getControlId()
Give the Control ID

Returns:
control id

getMap

public Map getMap()
get the map to which this control is attached

Returns:
the map

getZIndex

public String getZIndex()

getLayer

public Vector getLayer()
Returns:
Vector on which features are drawn


Copyright © 2011 sourceforge. All Rights Reserved.