public class CoordinateProjected extends Coordinate
valueX, valueYcounter, JS_GLOBAL, objectIds| Constructor and Description |
|---|
CoordinateProjected(Number valueX,
Number valueY,
String projection)
Creates a new instance.
|
CoordinateProjected(Number valueX,
Number valueY,
String projection,
String targetProjection)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getProjection()
Returns the projection for the coordinate.
|
String |
getTargetProjection()
Returns the target projection.
|
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setProjection(String projection)
Sets the projection for this coordinate.
|
void |
setTargetProjection(String targetProjection)
Sets the target projection for the coordinate.
|
CoordinateProjected |
targetProjection(String targetProjection)
Sets the target projection for the coordinate.
|
String |
toString() |
CoordinateProjected |
transform(String targetProjection)
Sets the target projection for the coordinate.
|
CoordinateProjected |
x(Number valueX)
Sets the "X" coordinate.
|
CoordinateProjected |
y(Number valueY)
Sets the "Y" coordinate.
|
getJsType, getX, getY, setX, setYescapeQuoteJs, getJsId, getJsIdWithSuffixpublic CoordinateProjected(Number valueX, Number valueY, String projection)
valueX - The "X" coordinatevalueY - The "Y" coordinateprojection - The projection for the coordinatepublic CoordinateProjected(Number valueX, Number valueY, String projection, String targetProjection)
valueX - The "X" coordinatevalueY - The "Y" coordinateprojection - The projection for the coordinatetargetProjection - The target projection for the coordinatepublic String getProjection()
public void setProjection(String projection)
projection - New valuepublic String getTargetProjection()
public void setTargetProjection(String targetProjection)
targetProjection - New valuepublic CoordinateProjected targetProjection(String targetProjection)
targetProjection - New valuepublic CoordinateProjected transform(String targetProjection)
targetProjection - New valuepublic CoordinateProjected x(Number valueX)
x in class CoordinatevalueX - New valuepublic CoordinateProjected y(Number valueY)
y in class CoordinatevalueY - New valuepublic String renderJs()
JavascriptObjectrenderJs in interface IJavascriptObjectrenderJs in class Coordinatepublic String toString()
toString in class CoordinateCopyright © 2014–2018. All rights reserved.