public class Point extends JavascriptObject implements Serializable
counter, JS_GLOBAL, objectIds
Constructor and Description |
---|
Point(Coordinate coordinate)
Creates a new instance.
|
Point(Coordinate coordinate,
Geometry.Layout layout)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Point |
coordinate(Coordinate coordinate)
Sets the coordinate for this point.
|
Coordinate |
getCoordinate()
Returns the coordinate for this point.
|
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
Geometry.Layout |
getLayout()
Returns the layout for this point.
|
Point |
layout(Geometry.Layout layout)
Sets the layout for this point.
|
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setCoordinate(Coordinate coordinate)
Sets the coordinate for this point.
|
void |
setLayout(Geometry.Layout layout)
Sets the layout for this point.
|
escapeQuoteJs, getJsId, getJsIdWithSuffix
public Point(Coordinate coordinate)
coordinate
- Coordinates for the pointpublic Point(Coordinate coordinate, Geometry.Layout layout)
coordinate
- Coordinate for the pointlayout
- Layout for the pointpublic Coordinate getCoordinate()
public void setCoordinate(Coordinate coordinate)
coordinate
- New valuepublic Point coordinate(Coordinate coordinate)
coordinate
- New valuepublic Geometry.Layout getLayout()
public void setLayout(Geometry.Layout layout)
layout
- New valuepublic Point layout(Geometry.Layout layout)
layout
- New valuepublic String getJsType()
JavascriptObject
getJsType
in interface IJavascriptObject
getJsType
in class JavascriptObject
public String renderJs()
JavascriptObject
renderJs
in interface IJavascriptObject
renderJs
in class JavascriptObject
Copyright © 2015. All rights reserved.