Class IWMeasuringControl

Extends IWControl.

A control element which allows the user to measure distances on the map by adding measure points.

Author: JAN, KUN

Constructor Summary
IWMeasuringControl(map)
            Creates a new measuring control.
 
Method Summary
 void activate()
           Activates the measuring control and opens the info window control.
 void addPoint(coordinate)
           Adds a new measure point at the end of the polyline.
 void afterAppend()
           Overwrites the afterAppend method from IWControl and creates the GUI after the control has been added to the map.
 void deactivate()
           Deactivates the measuring control and closes the info window control.
 IWWindowControl getInfoWindow()
           Returns the info window control.
 IWGraphisRenderer getRenderer()
           Returns the graphic renderer.
 void hideInfoWindow()
           Hides the InfoWindow.
 void reset()
           Deletes the polyline and sets the distance to zero.
setLastPoint(point)
           undocumented
 void showInfoWindow()
           Displays the InfoWindow (default).
 void toString()
           Returns a string representation of this object.
 
Event Summary
 void triggerOnDistanceChange()
           The onDistanceChange event is fired after the distance has been changed.

Register an event listener with IWEventManager.addListener(theMeasuringSegment, 'ondistancechange', yourHandlerMethod(event)); to receive the event.

 
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)
beforeAppend()
beforeRemove()
afterRemove()
destroyMapElement()
Methods inherited from class IWControl
isControl()
isRedrawable()
setRedrawable(isRedrawable)
getPadding()
setPadding(newPadding)
setFirstOrientation(alignment)
getFirstOrientation()
setSecondOrientation(alignment)
getSecondOrientation()
getName()


Constructor Detail

IWMeasuringControl

IWMeasuringControl(map)

Method Detail

activate

void activate()

addPoint

void addPoint(coordinate)

afterAppend

void afterAppend()

deactivate

void deactivate()

getInfoWindow

IWWindowControl getInfoWindow()

getRenderer

IWGraphisRenderer getRenderer()

hideInfoWindow

void hideInfoWindow()

reset

void reset()

setLastPoint

setLastPoint(point)

showInfoWindow

void showInfoWindow()

toString

void toString()

Event Detail

triggerOnDistanceChange

void triggerOnDistanceChange()

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)