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 GeometryContextprivate booleanFields 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 doublestatic GeometryNodecreate(Geometry geom, GeometryContext context) protected abstract voidprivate static StringgeometryText(Geometry geom, int size, String tag) getChildAt(int index) intgetIcon()intprivate static booleanprivate static booleanbooleanisLeaf()private voidLazily 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:
isLeafin classGeometricObjectNode
-
getIcon
- Specified by:
getIconin classGeometricObjectNode
-
getChildAt
- Specified by:
getChildAtin classGeometricObjectNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCountin classGeometricObjectNode
-
getIndexOfChild
- Specified by:
getIndexOfChildin classGeometricObjectNode
-
populateChildren
private void populateChildren()Lazily creates child nodes -
fillChildren
protected abstract void fillChildren()
-