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) Coordinatecoordprivate static java.text.DecimalFormatfmt-
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 CoordinateNodecreate(Coordinate p)static CoordinateNodecreate(Coordinate p, int i, double distPrev)GeometricObjectNodegetChildAt(int index)intgetChildCount()GeometrygetGeometry()javax.swing.ImageIcongetIcon()intgetIndexOfChild(GeometricObjectNode child)booleanisLeaf()private static java.lang.Stringlabel(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:
getIconin classGeometricObjectNode
-
getGeometry
public Geometry getGeometry()
- Specified by:
getGeometryin classGeometricObjectNode
-
isLeaf
public boolean isLeaf()
- Specified by:
isLeafin classGeometricObjectNode
-
getChildAt
public GeometricObjectNode getChildAt(int index)
- Specified by:
getChildAtin classGeometricObjectNode
-
getChildCount
public int getChildCount()
- Specified by:
getChildCountin classGeometricObjectNode
-
getIndexOfChild
public int getIndexOfChild(GeometricObjectNode child)
- Specified by:
getIndexOfChildin classGeometricObjectNode
-
-