com.mapitz.gwt.googleMaps.client
Class GInfoWindow

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.mapitz.gwt.googleMaps.client.GOverlay
          extended by com.mapitz.gwt.googleMaps.client.GInfoWindow

public class GInfoWindow
extends GOverlay

An information panel which displays over the map. Only created by GMaps2.


Method Summary
 GSize getPixelOffset()
          getPixelOffset() GSize Returns the offset, in pixels, of the tip of the info window from the point on the map at whose geographical coordinates the info window is anchored.
 GLatLng getPoint()
          getPoint() GLatLng Returns the geographical point at which the info window is anchored.
 int getSelectedTab()
          getSelectedTab() Number Returns the index, starting at 0, of the current selected tab.
 void hide()
          hide() none Makes the info window invisible.
 boolean isHidden()
          isHidden() Boolean Returns true iff the info window is hidden.
 void reset(GLatLng point, GInfoWindowTab[] tabs, GSize size)
          reset(point, tabs, size, offset?, selectedTab?) none Resets the state of the info window.
 void reset(GLatLng point, GInfoWindowTab[] tabs, GSize size, GSize offset)
          reset(point, tabs, size, offset?, selectedTab?) none Resets the state of the info window.
 void reset(GLatLng point, GInfoWindowTab[] tabs, GSize size, GSize offset, int selectedTab)
          reset(point, tabs, size, offset?, selectedTab?) none Resets the state of the info window.
 void selectTab(int index)
          selectTab(index) none Selects the tab with the given index.
 void show()
          show() none Makes the info window visible if its currently invisible.
 
Methods inherited from class com.mapitz.gwt.googleMaps.client.GOverlay
Copy, GetZIndex, Initialize, Redraw, Remove
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

selectTab

public void selectTab(int index)
selectTab(index) none Selects the tab with the given index. This has the same effect as clicking on the corresponding tab.


hide

public void hide()
hide() none Makes the info window invisible. NOTE: This doesn't close the info window. It can be made visible again using show().


show

public void show()
show() none Makes the info window visible if its currently invisible.


isHidden

public boolean isHidden()
isHidden() Boolean Returns true iff the info window is hidden. This includes the state that it's closed.


reset

public void reset(GLatLng point,
                  GInfoWindowTab[] tabs,
                  GSize size,
                  GSize offset,
                  int selectedTab)
reset(point, tabs, size, offset?, selectedTab?) none Resets the state of the info window. Each argument may be null and then its value will not be changed from the current value.


reset

public void reset(GLatLng point,
                  GInfoWindowTab[] tabs,
                  GSize size,
                  GSize offset)
reset(point, tabs, size, offset?, selectedTab?) none Resets the state of the info window. Each argument may be null and then its value will not be changed from the current value.


reset

public void reset(GLatLng point,
                  GInfoWindowTab[] tabs,
                  GSize size)
reset(point, tabs, size, offset?, selectedTab?) none Resets the state of the info window. Each argument may be null and then its value will not be changed from the current value.


getPoint

public GLatLng getPoint()
getPoint() GLatLng Returns the geographical point at which the info window is anchored. The tip of the window points to this point on the map, modulo the pixel offset.


getPixelOffset

public GSize getPixelOffset()
getPixelOffset() GSize Returns the offset, in pixels, of the tip of the info window from the point on the map at whose geographical coordinates the info window is anchored.


getSelectedTab

public int getSelectedTab()
getSelectedTab() Number Returns the index, starting at 0, of the current selected tab.