Class GeometryNode
java.lang.Object
org.locationtech.jtstest.testbuilder.GeometricObjectNode
org.locationtech.jtstest.testbuilder.GeometryNode
- Direct Known Subclasses:
GeometryCollectionNode
,LineStringNode
,PointNode
,PolygonNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List
<GeometricObjectNode> protected GeometryContext
private boolean
Fields inherited from class org.locationtech.jtstest.testbuilder.GeometricObjectNode
index, text
-
Constructor Summary
ConstructorsConstructorDescriptionGeometryNode
(Geometry geom, int size, String tag, GeometryContext context) GeometryNode
(Geometry geom, GeometryContext context) -
Method Summary
Modifier and TypeMethodDescriptionprivate static double
static GeometryNode
create
(Geometry geom, GeometryContext context) protected abstract void
private static String
geometryText
(Geometry geom, int size, String tag) getChildAt
(int index) int
getIcon()
int
private static boolean
private static boolean
boolean
isLeaf()
private void
Lazily creates child nodesMethods inherited from class org.locationtech.jtstest.testbuilder.GeometricObjectNode
getGeometry, getText, indexString, setIndex, sizeString
-
Field Details
-
context
-
isLeaf
private boolean isLeaf -
children
-
-
Constructor Details
-
GeometryNode
-
GeometryNode
-
-
Method Details
-
create
-
geometryText
-
area
-
hasArea
-
hasLength
-
isLeaf
public boolean isLeaf()- Specified by:
isLeaf
in classGeometricObjectNode
-
getIcon
- Specified by:
getIcon
in classGeometricObjectNode
-
getChildAt
- Specified by:
getChildAt
in classGeometricObjectNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCount
in classGeometricObjectNode
-
getIndexOfChild
- Specified by:
getIndexOfChild
in classGeometricObjectNode
-
populateChildren
private void populateChildren()Lazily creates child nodes -
fillChildren
protected abstract void fillChildren()
-