Class GeometryNode
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.GeometricObjectNode
-
- org.locationtech.jtstest.testbuilder.GeometryNode
-
- Direct Known Subclasses:
GeometryCollectionNode,LineStringNode,PointNode,PolygonNode
abstract class GeometryNode extends GeometricObjectNode
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<GeometricObjectNode>childrenprotected GeometryContextcontextprivate booleanisLeaf-
Fields inherited from class org.locationtech.jtstest.testbuilder.GeometricObjectNode
index, text
-
-
Constructor Summary
Constructors Constructor Description GeometryNode(Geometry geom, int size, java.lang.String tag, GeometryContext context)GeometryNode(Geometry geom, GeometryContext context)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private static doublearea(Geometry geom)static GeometryNodecreate(Geometry geom, GeometryContext context)protected abstract voidfillChildren()private static java.lang.StringgeometryText(Geometry geom, int size, java.lang.String tag)GeometricObjectNodegetChildAt(int index)intgetChildCount()javax.swing.ImageIcongetIcon()intgetIndexOfChild(GeometricObjectNode child)private static booleanhasArea(Geometry geom)private static booleanhasLength(Geometry geom)booleanisLeaf()private voidpopulateChildren()Lazily creates child nodes-
Methods inherited from class org.locationtech.jtstest.testbuilder.GeometricObjectNode
getGeometry, getText, indexString, setIndex, sizeString
-
-
-
-
Field Detail
-
context
protected GeometryContext context
-
isLeaf
private boolean isLeaf
-
children
protected java.util.List<GeometricObjectNode> children
-
-
Constructor Detail
-
GeometryNode
public GeometryNode(Geometry geom, GeometryContext context)
-
GeometryNode
public GeometryNode(Geometry geom, int size, java.lang.String tag, GeometryContext context)
-
-
Method Detail
-
create
public static GeometryNode create(Geometry geom, GeometryContext context)
-
geometryText
private static java.lang.String geometryText(Geometry geom, int size, java.lang.String tag)
-
area
private static double area(Geometry geom)
-
hasArea
private static boolean hasArea(Geometry geom)
-
hasLength
private static boolean hasLength(Geometry geom)
-
isLeaf
public boolean isLeaf()
- Specified by:
isLeafin classGeometricObjectNode
-
getIcon
public javax.swing.ImageIcon getIcon()
- Specified by:
getIconin 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
-
populateChildren
private void populateChildren()
Lazily creates child nodes
-
fillChildren
protected abstract void fillChildren()
-
-