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
- All Implemented Interfaces:
HasHandlers
X/Y position in pixels, specified as an Array with two members, for example: [30, 50]
-
Field Summary
Fields inherited from class com.smartgwt.client.core.RefDataClass
idFields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties -
Constructor Summary
ConstructorsConstructorDescriptionPoint()Point(double x, double y) Point(int x, int y) Point(JavaScriptObject jsObj) -
Method Summary
Modifier and TypeMethodDescriptionstatic PointgetOrCreateRef(JavaScriptObject jsObj) intgetX()The x coordinate of this point.doubleThe x coordinate of this point.intgetY()The y coordinate of this point.doubleThe y coordinate of this point.Methods inherited from class com.smartgwt.client.core.RefDataClass
getRef, getRef, internalSetIDMethods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
Point
public Point() -
Point
-
Point
public Point(int x, int y) -
Point
public Point(double x, double y)
-
-
Method Details
-
getOrCreateRef
-
getX
public int getX()The x coordinate of this point.- Returns:
- int
-
getXAsDouble
public double getXAsDouble()The x coordinate of this point.- Returns:
- double
-
getY
public int getY()The y coordinate of this point.- Returns:
- int
-
getYAsDouble
public double getYAsDouble()The y coordinate of this point.- Returns:
- double
-