org.gwtopenmaps.openlayers.client.util
Class JFloatArray

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.util.JArrayBase
          extended by org.gwtopenmaps.openlayers.client.util.JFloatArray

public class JFloatArray
extends JArrayBase

For incoming Arrays it is also possible to use JsArrayNumber that is default in GWT. Note: All native JavaScript numeric values are implicitly double-precision (see JavaDoc JsArrayNumber), so working with floats seems redundant.


Constructor Summary
protected JFloatArray(JSObject array)
           
 
Method Summary
static JFloatArray create(float[] floats)
           
 float get(int index)
           
static JFloatArray narrowToJFloatArray(JSObject array)
           
 void push(float f)
           
 float[] toArray()
           
 
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JArrayBase
length, narrowToJArray
 
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
getJSObject, setJSObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JFloatArray

protected JFloatArray(JSObject array)
Method Detail

narrowToJFloatArray

public static JFloatArray narrowToJFloatArray(JSObject array)

get

public float get(int index)

toArray

public float[] toArray()

create

public static JFloatArray create(float[] floats)

push

public void push(float f)


Copyright © 2011 sourceforge. All Rights Reserved.