Class CoordinateNode
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.GeometricObjectNode
-
- org.locationtech.jtstest.testbuilder.CoordinateNode
-
class CoordinateNode extends GeometricObjectNode
Coordinate is the only leaf node now, but could be refactored into a LeafNode class.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Coordinate
coord
private static java.text.DecimalFormat
fmt
-
Fields inherited from class org.locationtech.jtstest.testbuilder.GeometricObjectNode
index, text
-
-
Constructor Summary
Constructors Constructor Description CoordinateNode(Coordinate coord)
CoordinateNode(Coordinate coord, int i, double distPrev)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CoordinateNode
create(Coordinate p)
static CoordinateNode
create(Coordinate p, int i, double distPrev)
GeometricObjectNode
getChildAt(int index)
int
getChildCount()
Geometry
getGeometry()
javax.swing.ImageIcon
getIcon()
int
getIndexOfChild(GeometricObjectNode child)
boolean
isLeaf()
private static java.lang.String
label(Coordinate coord, int i, double distPrev)
-
Methods inherited from class org.locationtech.jtstest.testbuilder.GeometricObjectNode
getText, indexString, setIndex, sizeString
-
-
-
-
Field Detail
-
fmt
private static java.text.DecimalFormat fmt
-
coord
Coordinate coord
-
-
Constructor Detail
-
CoordinateNode
public CoordinateNode(Coordinate coord)
-
CoordinateNode
public CoordinateNode(Coordinate coord, int i, double distPrev)
-
-
Method Detail
-
create
public static CoordinateNode create(Coordinate p)
-
create
public static CoordinateNode create(Coordinate p, int i, double distPrev)
-
label
private static java.lang.String label(Coordinate coord, int i, double distPrev)
-
getIcon
public javax.swing.ImageIcon getIcon()
- Specified by:
getIcon
in classGeometricObjectNode
-
getGeometry
public Geometry getGeometry()
- Specified by:
getGeometry
in classGeometricObjectNode
-
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in classGeometricObjectNode
-
getChildAt
public GeometricObjectNode getChildAt(int index)
- Specified by:
getChildAt
in classGeometricObjectNode
-
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in classGeometricObjectNode
-
getIndexOfChild
public int getIndexOfChild(GeometricObjectNode child)
- Specified by:
getIndexOfChild
in classGeometricObjectNode
-
-