com.smartgwt.client.widgets.drawing
Class Point
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.widgets.drawing.Point
public class Point
- extends RefDataClass
X/Y position in pixels, specified as an Array with two members, for example: [30, 50]
| Fields inherited from class com.smartgwt.client.core.JsObject |
jsObj |
|
Constructor Summary |
Point()
|
Point(int x,
int y)
|
Point(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
Method Summary |
static Point[] |
convertToPointArray(com.google.gwt.core.client.JavaScriptObject nativeArray)
|
com.google.gwt.core.client.JavaScriptObject |
getAsJSArray()
|
com.google.gwt.core.client.JavaScriptObject |
getJsObj()
|
static Point |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
|
int |
getX()
The x coordinate of this point. |
int |
getY()
The y coordinate of this point. |
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
|
| Methods inherited from class com.smartgwt.client.core.DataClass |
doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Point
public Point()
Point
public Point(com.google.gwt.core.client.JavaScriptObject jsObj)
Point
public Point(int x,
int y)
getOrCreateRef
public static Point getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
getAsJSArray
public com.google.gwt.core.client.JavaScriptObject getAsJSArray()
getJsObj
public com.google.gwt.core.client.JavaScriptObject getJsObj()
- Overrides:
getJsObj in class DataClass
getX
public int getX()
- The x coordinate of this point.
- Returns:
- int
getY
public int getY()
- The y coordinate of this point.
- Returns:
- int
convertToPointArray
public static Point[] convertToPointArray(com.google.gwt.core.client.JavaScriptObject nativeArray)