Class CoordinateNode
java.lang.Object
org.locationtech.jtstest.testbuilder.GeometricObjectNode
org.locationtech.jtstest.testbuilder.CoordinateNode
Coordinate is the only leaf node now, but could be
refactored into a LeafNode class.
-
Field Summary
FieldsFields inherited from class org.locationtech.jtstest.testbuilder.GeometricObjectNode
index, text
-
Constructor Summary
ConstructorsConstructorDescriptionCoordinateNode
(Coordinate coord) CoordinateNode
(Coordinate coord, int i, double distPrev) -
Method Summary
Modifier and TypeMethodDescriptionstatic CoordinateNode
create
(Coordinate p) static CoordinateNode
create
(Coordinate p, int i, double distPrev) getChildAt
(int index) int
getIcon()
int
boolean
isLeaf()
private static String
label
(Coordinate coord, int i, double distPrev) Methods inherited from class org.locationtech.jtstest.testbuilder.GeometricObjectNode
getText, indexString, setIndex, sizeString
-
Field Details
-
fmt
-
coord
Coordinate coord
-
-
Constructor Details
-
CoordinateNode
-
CoordinateNode
-
-
Method Details
-
create
-
create
-
label
-
getIcon
- Specified by:
getIcon
in classGeometricObjectNode
-
getGeometry
- Specified by:
getGeometry
in classGeometricObjectNode
-
isLeaf
public boolean isLeaf()- Specified by:
isLeaf
in classGeometricObjectNode
-
getChildAt
- Specified by:
getChildAt
in classGeometricObjectNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCount
in classGeometricObjectNode
-
getIndexOfChild
- Specified by:
getIndexOfChild
in classGeometricObjectNode
-