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>
children
protected GeometryContext
context
private boolean
isLeaf
-
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 double
area(Geometry geom)
static GeometryNode
create(Geometry geom, GeometryContext context)
protected abstract void
fillChildren()
private static java.lang.String
geometryText(Geometry geom, int size, java.lang.String tag)
GeometricObjectNode
getChildAt(int index)
int
getChildCount()
javax.swing.ImageIcon
getIcon()
int
getIndexOfChild(GeometricObjectNode child)
private static boolean
hasArea(Geometry geom)
private static boolean
hasLength(Geometry geom)
boolean
isLeaf()
private void
populateChildren()
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:
isLeaf
in classGeometricObjectNode
-
getIcon
public javax.swing.ImageIcon getIcon()
- Specified by:
getIcon
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
-
populateChildren
private void populateChildren()
Lazily creates child nodes
-
fillChildren
protected abstract void fillChildren()
-
-