GWT 2.7.0

com.google.gwt.canvas.dom.client
Class TextMetrics

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.canvas.dom.client.TextMetrics

public class TextMetrics
extends JavaScriptObject

HTML 5 Canvas text metrics.

See Also:
HTML Canvas 2D TextMetrics

Constructor Summary
protected TextMetrics()
           
 
Method Summary
 double getWidth()
          Return the width of the rendered text.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextMetrics

protected TextMetrics()
Method Detail

getWidth

public final double getWidth()
Return the width of the rendered text.

Returns:
the width of the text

GWT 2.7.0