Follow us on GitHub

com.google.gwt.maps.client.services
Class Distance

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.services.Distance

public class Distance
extends JavaScriptObject

A representation of distance as a numeric value and a display string.

See Distance API Doc


Constructor Summary
protected Distance()
          use newInstance();
 
Method Summary
 String getText()
          A string representation of the distance value, using the UnitSystem specified in the request.
 int getValue()
          The distance in meters.
static Distance newInstance()
          A representation of distance as a numeric value and a display string.
 void setText(String text)
          A string representation of the distance value, using the UnitSystem specified in the request.
 void setValue(int value)
          The distance in meters.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Distance

protected Distance()
use newInstance();

Method Detail

newInstance

public static final Distance newInstance()
A representation of distance as a numeric value and a display string.


setText

public final void setText(String text)
A string representation of the distance value, using the UnitSystem specified in the request.

Parameters:
text -

getText

public final String getText()
A string representation of the distance value, using the UnitSystem specified in the request.


setValue

public final void setValue(int value)
The distance in meters.

Parameters:
value -

getValue

public final int getValue()
The distance in meters.



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.