com.google.gwt.maps.client.control
Class ControlPosition

java.lang.Object
  extended by com.google.gwt.maps.client.control.ControlPosition

public final class ControlPosition
extends java.lang.Object

This class described the position of a control in the map view. It consists of a corner relative to where the control is positioned, and an offset that determines this position. It can be passed as optional argument position to the method MapWidget.addControl(Control), and it is returned from method Control.CustomControl.getDefaultPosition().


Constructor Summary
ControlPosition(ControlAnchor anchor, int offsetX, int offsetY)
          Create a new ControlPosition.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlPosition

public ControlPosition(ControlAnchor anchor,
                       int offsetX,
                       int offsetY)
Create a new ControlPosition.

Parameters:
anchor - specifies which corner of the screen the X and Y offsets are computed from.
offsetX - number of horizontal pixels offset from the corner.
offsetY - number of vertical pixels offset from the corner.