Class IWOverlay

Extends IWMapElement IWDraggable.

An interface which has to be implemented by all overlays. Overlays are displayed behind the controls.

Author: JAN

Constructor Summary
IWOverlay(map, coordinate)
            Overlay interface.
 
Method Summary
 void afterAppend()
           Callback method. This method will be directly called by the addOverlay method after the overlay has been added to the map.
 void afterRemove()
           Callback method. This method will be directly called by the removeOverlay method after the overlay has been removed from the map.
 void beforeAppend()
           Callback method. This method will be directly called by the addOverlay method before the overlay has been added to the map.
 void beforeRemove()
           Callback method. This method will be directly called by the removeOverlay method before the overlay has been removed from the map.
 void destroyOverlay()
           Destroys the overlay.
 IWCoordinate getCoordinate()
           Returns the coordinate for this overlay.
 IWPoint getHotspot()
           Returns the hotspot of the container object.
 int getLayer()
           Returns the layer number of this overlay. calling the addOverlay() method from the IWOverlayLayer.
 void redraw()
           Redraws the overlay. Calculates and sets the new pixel position where the overlay appears on the map.
 void setCoordinate(newCoordinate)
           Sets the coordinate for this overlay.
 void setHotspot(newHotspot)
           Sets the hotspot of the container object.
 
Event Summary
 void triggerOnPositionChange()
           The onPositionChange event is fired after the coordinate of the overlay object has been changed.

Register an event listener with IWEventManager.addListener(overlayObject, 'onpositionchange', yourHandlerMethod(event)); to receive this event.

 void triggerOnRedrawEnd()
           The onRedrawEnd event is fired after the overlay has been redrawed.

Register an event listener with IWEventManager.addListener(overlayObject, 'onredrawend', yourHandlerMethod()); to receive this event.

Notice that no event object will be passed through the handler method.

 void triggerOnRedrawStart()
           The onRedrawStart event is fired before the overlay is redrawed.

Register an event listener with IWEventManager.addListener(overlayObject, 'onredrawstart', yourHandlerMethod()); to receive this event.

Notice that no event object will be passed through the handler method.

 
Methods inherited from class IWDraggable
allowDraggingOutsideParent(isDraggingOutsideParentAllowed)
isDraggingOutsideParentAllowed()
setOnMouseMoveContainer(container)
getOnMouseMoveContainer()
setDraggingBounds(bounds)
getDraggingBounds()
setDraggable(isDraggable)
isDraggable()
setDraggableContainer(draggableContainer)
getDraggableContainer()
setDragButton(button)
getDragButton()
Methods inherited from class IWMapElement
isDisplayed()
getParent()
setParent(newParent)
isVisible()
setVisible(visible)
setPrintable(printable)
isPrintable()
setContainerClassname(classname)
getContainer()
setContainer(newContainer)
setId(id)
getId()
onContextMenu(event)
onMouseUp(event)
onMouseDown(event)
onMouseMove(event)
onMouseOut(event)
onMouseOver(event)
onClick(event)
onDblClick(event)
onSelect(event)
onMouseWheel(event)
destroyMapElement()


Constructor Detail

IWOverlay

IWOverlay(map, coordinate)

Method Detail

afterAppend

void afterAppend()

afterRemove

void afterRemove()

beforeAppend

void beforeAppend()

beforeRemove

void beforeRemove()

destroyOverlay

void destroyOverlay()

getCoordinate

IWCoordinate getCoordinate()

getHotspot

IWPoint getHotspot()

getLayer

int getLayer()

redraw

void redraw()

setCoordinate

void setCoordinate(newCoordinate)

setHotspot

void setHotspot(newHotspot)

Event Detail

triggerOnPositionChange

void triggerOnPositionChange()

triggerOnRedrawEnd

void triggerOnRedrawEnd()

triggerOnRedrawStart

void triggerOnRedrawStart()

Source-Code Copyright 2007-2009 infoware GmbH - Documentation generated by JsDoc Toolkit 1.4.1 on Tue Nov 28 2017 09:51:52 GMT+0100 (MEZ)