public abstract class AbstractPoint extends NativeObjectContainer
Modifier | Constructor and Description |
---|---|
protected |
AbstractPoint()
Creates an empty object.
|
protected |
AbstractPoint(double x)
Creates an object with X coordinate of the point
|
protected |
AbstractPoint(double x,
double y)
Creates an object with X and Y coordinates of the point
|
protected |
AbstractPoint(NativeObject nativeObject)
Creates the object with native object instance to be wrapped.
|
Modifier and Type | Method and Description |
---|---|
double |
getX()
Returns the X coordinate of the point.
|
double |
getY()
Returns the Y coordinate of the point.
|
boolean |
isConsistent()
Returns
true if the coordinates are consistent and not NaN . |
void |
setX(double x)
Sets the X coordinate of the point.
|
void |
setY(double y)
Sets the Y coordinate of the point.
|
checkDefaultValuesArgument, empty, getArrayValue, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
protected AbstractPoint()
protected AbstractPoint(double x)
x
- the X coordinate of the pointprotected AbstractPoint(double x, double y)
x
- the X coordinate of the pointy
- the Y coordinate of the pointprotected AbstractPoint(NativeObject nativeObject)
nativeObject
- native object instance to be wrapped.public final void setX(double x)
x
- the X coordinate of the point.public final double getX()
public final void setY(double y)
y
- the Y coordinate of the point.public final double getY()
public final boolean isConsistent()
true
if the coordinates are consistent and not NaN
.true
if the coordinates are consistent and not NaN